devise-twitter icon indicating copy to clipboard operation
devise-twitter copied to clipboard

Receiving a 401 Unauthorized error

Open vrish88 opened this issue 15 years ago • 3 comments

I'm encountering a 401 Unauthorized error when oauth tries to acquire a request token. I've been trying to figure out what the issue is for the past hour with no luck.

I've got my consumer_key and consumer_secret all setup in devise_twitter.rb. What else could I have wrong?

Thanks.

vrish88 avatar Feb 02 '11 13:02 vrish88

I am facing same issue.

anildigital avatar Mar 08 '11 13:03 anildigital

Also got this error.

ghost avatar Apr 07 '11 21:04 ghost

Found that since I haven't provided a callback URL in the Twitter App settings (I'm currently developing on localhost), Twitter decided to revert my app's type to "client" from "browser", and was complaining that I wasn't giving it some of desktop-specific params. Providing something as simple as http://127.0.0.1:3000 for the callback URL worked.

freeatnet avatar Apr 18 '11 23:04 freeatnet