0

Unable to Exchange PART

I am unable to connect to yahoo server. I am developing Yahoo Messenger for Mobile.
I am able to recieve a Request Token, but server returns with consumer_key unknown, when i try to exchange PART.

CODE
error code: oauth_problem=consumer_key_unknown


i am using hmac-sha1 for signing my request.
Also i have checked my keys which i registered from

CODE
https://developer.apps.yahoo.com/projects#


many times. Please help !!

by
3 Replies
  • Hi,

    Can you please provide the complete HTTP request and response headers
    including the consumer key so we can check where it may go wrong?

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Request for Request Token
    CODE
    GET /WSLogin/V1/get_auth_token?oauth_consumer_key=dj0yJmk9bzNlUU1QUk16ZEk4JmQ9WVdrOVZVaHJXRGxVTkcwbWNHbzlOemM0T
    lRBd01qWXkmcz1jb25zdW1lcnNlY3JldCZ4PWE3&login=prabhjot.mediatek&passwd=zxcvbnm HTTP/1.1
    Host: login.yahoo.com




    HTTP/1.1 200 OK
    Date: Thu, 02 Sep 2010 06:54:02 GMT
    P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    Cache-Control: private
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/plain

    ee
    RequestToken=5WYOWahu3AYxOV209V17HXRcWhUEagr9qOl0QkDLG5LdkNxKHqFEtXrujMKjUZqICXq
    XXaH6hDdFiinSKUqA_sKI4jYmGFYSEx3_4NyOEi4yQ3HjQXFcgziZQ_V3rwGG2qsz4Pl20Yy2zHf8QLhV
    Hd2eSTXaCsBYHgkaF7_67hl5CAHKffBJNakE8kDgPJWUcFWYGzL2fSv36Na7_jC7jyVgCVyDWr8-
    0


    Request for Exchanging PART
    CODE
    GET /oauth/v2/get_token?oauth_consumer_key=dj0yJmk9bzNlUU1QUk16ZEk4JmQ9WVdrOVZVaHJXRGxVTkcwbWNHbzlOemM0T
    lRBd01qWXkmcz1jb25zdW1lcnNlY3JldCZ4PWE3&oauth_consumer_key=dj0yJmk9bzNlUU1QUk16ZEk4JmQ9WVdrOVZVaHJXRGxVTkcwbWNHbzlOe
    mM0TlRBd01qWXkmcz1jb25zdW1lcnNlY3JldCZ4PWE3&oauth_nonce=aaaaaaaaaaaaaaa&oauth_signature_method=HMAC-SHA1&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1283409999&oauth_token=5WYOWahu3AYxOV209V17HXRcWhUEagr9qOl0QkDLG5LdkNxKHqFEtXrujMKjUZqI
    CXqXXaH6hDdFiinSKUqA_sKI4jYmGFYSEx3_4NyOEi4yQ3HjQXFcgziZQ_V3rwGG2qsz4Pl20Yy2zHf8Q
    LhVHd2eSTXaCsBYHgkaF7_67hl5CAHKffBJNakE8kDgPJWUcFWYGzL2fSv36Na7_jC7jyVgCVyDWr8-&oauth_version=1.0&oauth_signature=GBBR%2B8GZDmCv4NHDn0oBZ2U0o3rQ4xI%3D HTTP/1.1
    Host: api.login.yahoo.com


    HTTP/1.1 401 Forbidden
    Date: Thu, 02 Sep 2010 06:54:10 GMT
    P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    WWW-Authenticate: OAuth oauth_problem=consumer_key_unknown
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: application/x-www-form-urlencoded

    22
    oauth_problem=consumer_key_unknown
    0
    0
  • Hey ! thanks ! the issue was solved.. I was not writing the request properly.
    0

Recent Posts

in OpenID General Discussion