"The remote server returned an error: (401) Unauthorized." Error while requesting access_token


#1

“The remote server returned an error: (401) Unauthorized.” Error while requesting access_token. Following are the details:-
URL- http://184.154.216.56/Login.aspx
query string = oauth_callback=http%3A%2F%2F184.154.216.56%2FLogin.aspx&oauth_consumer_key=gHts1hf3Rv1KO4WxALPrPQ&oauth_nonce=8611265&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1336486165&oauth_version=1.0
Method: tried both GET and POST
URL to send request: https://api.twitter.com/oauth/request_token
I am also using the correct date and time on server.

Please let me know if anyone has information about this?


#2

Have you tried everything (including using header-based auth instead of querystring-based) in [node:204]?


#3

you need to calculate the signature and add it to the querystring.


#4

Make sure your application is set as a web application on the development portal. For the callback address there, make sure you use an incorrect address (like your application’s homepage), then specify the real address at runtime.

Web applications can use pin-based authentication, but desktop applications cannot use the web flow.