0

token_rejected some times?

we are using the oauth to get user contacts info. The code works some times, but most of the times gets token_rejected. I am not sure why, can some one help?

posting this URL passed the token check

CODE
https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=123456789VjRzN3Y5ZlBJYTI3JmQ9WVdrOVdWRnRUMlJ5TlRnbWNHbzlPRGsw
TURnMk16WXkmcz1jb25zdW1lcnNlY3JldCZ4PTM3&oauth_nonce=0d94c499e131a4576eb3962e83c7b133&oauth_signature=aFMcs600JEnQV%2BX7pFaqi2mdLXY%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1277272418&oauth_token=etngrtt&oauth_verifier=2erfuw&oauth_version=1.0



But posting this url returned oauth_problem token_rejected

CODE
https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=123456789VjRzN3Y5ZlBJYTI3JmQ9WVdrOVdWRnRUMlJ5TlRnbWNHbzlPRGsw
TURnMk16WXkmcz1jb25zdW1lcnNlY3JldCZ4PTM3&oauth_nonce=ee65fe6b3e5a891f3e16d5864480716a&oauth_signature=fhhyIvuRg4fXywxTS7F6q%2FapxGs%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1277272481&oauth_token=efye68d&oauth_verifier=hzkbty&oauth_version=1.0


I used same function call generated the tokens before I tried to verify them in the previous two posts.

Thanks a lot

by
1 Reply
  • Hi Frank,

    There is some user data duplication delay when consumer site, our
    OAuth server and end user are geographically dispersed and that
    delay causes the token not recognized and hence the "token_rejected"
    error. We are working on some fix to migate the problem.

    As a workaround for the time being, we suggest you insert a few
    seconds' delay after you get the authorized request token but before
    you use it to get the access token or just repeat the call after
    the first call gets "token_rejected" error and wait a few seconds.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0

Recent Posts

in OAuth General Discussion YDN SDKs