0

File not found error when exchanging request token for access token

Hi, I'm creating an application which can fetch the contacts of Yahoo! users, using OpenID/OAuth authorization method which described here:http://developer.yahoo.com/oauth/guide/openid-oauth-guide.html

I've passed the first 3 steps successfully:
1. Signup for an OAuth consumer key (OK)
2. Performs OpenID Discovery (I skip this step, and use the following URL: https://open.login.yahooapis.com/openid/op/auth, because "it's unlikely to change")
3. Get a Pre-approved Request Token (OpenID) (OK)

After the third step, I've retrieved the pre-approved access token, but failed in the fourth step.
Everytime I make a request to https://api.login.yahoo.com/oauth/v2/get_token....
it returns File Not Found error.
What I can do to fix this problem?

By the way, in the fourth step, OAuth requires the parameter oauth_signature.
Because I don't have the Token Secret (I can't find it in responses of step 3), how can I create this signature?

Thanks in advance.

by
3 Replies
  • Hi Dũng,

    Can you please send the complete HTTP request and response for
    the get_token call so we can check from our end?

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • QUOTE (omiga @ Jul 26 2010, 11:39 AM) <{POST_SNAPBACK}>
    Hi Dũng,

    Can you please send the complete HTTP request and response for
    the get_token call so we can check from our end?

    Thanks,
    Yu Wang
    Yahoo! Membership Team


    Hi Wu Yang,
    Here is the request:
    https://api.login.yahoo.com/oauth/v2/get_to...feff55027ede%26
    0
  • um, when I saw the response in Firebug, it returns HTTP 401 status code (forbidden).
    Here is the complete response header:
    Date Tue, 27 Jul 2010 04:09:58 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=token_rejected
    Connection close
    Transfer-Encoding chunked
    Content-Type application/x-www-form-urlencoded

    What does this means? Is something wrong with my oauth_request_token?
    0
  • When you get 401 error for your get_token call, can you please
    wait a few seconds and retry the same request?

    Thanks,
    Yu Wang
    0
  • QUOTE (omiga @ Jul 29 2010, 09:44 PM) <{POST_SNAPBACK}>
    When you get 401 error for your get_token call, can you please
    wait a few seconds and retry the same request?

    Thanks,
    Yu Wang


    Sorry for late reply. Everytime I tried(both new request or the same one), it always returned 401 error.
    0
  • Do you have any live web site that I can visit to see if I can
    reproduce this issue myself?

    Thanks,
    Yu Wang
    0

Recent Posts

in OAuth General Discussion YDN SDKs