Yahoo Authorization OAUTH:oauth_problem=“timestamp_refused”

那年仲夏 提交于 2020-01-03 16:55:09

问题


I have been following Yahoo OAUTH guide closely and successfully established a connection and was able to retrieve the access token along with other objects which i get in response URI.But, now when i try to fetch the Contacts of the authenticated user i always get this Error no matter what NTP server i choose for my computers clock:

Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth oauth_problem="timestamp_refused", realm="yahooapis.com"}

Searching around i could know that i am not the only one experiencing this,but the 'solutions' included -

  • Adding some time to the milliseconds which i pass as timestamp.(This is what i follow,i successfully gets me an access token but not when getting contacts)
  • Synchronising the computer's clock to some good server.

Nevertheless, i tried these but getting the same error.

Here's a view of what i send:

var url = 'https://api.login.yahoo.com/oauth/v2/get_token';
                url += '?oauth_nonce=' + 'somerandomstring';
                url += '&oauth_timestamp=' + timestamp;
                url += '&oauth_consumer_key=' + ConsumerKey;
                url += '&oauth_signature_method=' + 'plaintext';
                url += '&oauth_signature=' + ConsumerSecret + '%26' + oauth_token_secret;
                url += '&oauth_version=1.0';
                url += '&oauth_token=' + oauth_token;
                url += '&oauth_verifier=' + oauth_verifier;

Any valid help would be appreciated.

来源:https://stackoverflow.com/questions/15492160/yahoo-authorization-oauthoauth-problem-timestamp-refused

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!