Yahoo Authorization OAUTH: oauth_problem = "timestamp_refused"

I followed the Yahoo OAUTH guide and successfully established a connection and was able to get the access token along with other objects that I receive in the URI response. But now, when I try to get the authenticated userโ€™s contacts, I always get this error no matter which NTP server I choose for my computers:

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

Searching around, I might know that I'm not the only one who is experiencing this, but โ€œsolutionsโ€ are included

  • Adding some time in milliseconds, which I pass as a timestamp. ( This is what I follow, I successfully get an access token, but not when getting contacts)
  • Synchronizing your computer clock with some good server.

However, I tried them, but got the same error.

Here is the view of what I am posting:

 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.

+4
source share

All Articles