Why do users have to enter a 7-digit twitter PIN to grant my application access?
Posted
by Tony
on Stack Overflow
See other posts from Stack Overflow
or by Tony
Published on 2009-08-11T20:22:19Z
Indexed on
2010/03/27
12:23 UTC
Read the original article
Hit count: 576
I am implementing some ruby on rails code tweet stuff for my users. I am creating the proper oauth link...something like
http://twitter.com/oauth/authorize?oauth_token=y2RkuftYAEkbEuIF7zKMuzWN30O2XxM8U9j0egtzKv
But after my test account grants access to twitter, it pulls up a page saying "You've successfully granted access to . Simply return to and enter the following PIN to complete the process. 1234567"
I have no idea where the user should enter this PIN and why they have to do that. I don't think this should be a necessary step. Twitter should be redirecting the user to the callback URL I provided in the application settings. Does anyone know why this is happening?
UPDATE I found this article that states I need to send my users to this URL (note "authenticate" instead of "authorize"):
http://twitter.com/oauth/authenticate?oauth_token=y2RkuftYAEkbEuIF7zKMuzWN30O2XxM8U9j0egtzKv
I made the change but Twitter redirects the user to the authorize path after he clicks "Allow" which then gives him the 7 digit PIN again!
© Stack Overflow or respective owner