Wednesday, 22 April 2015

Twitter login failed leads to Page not found

I have integration Twitter Sign and Its working fine. :)
Problem: When any user sign in with wrong credentials, It redirect to "Sorry, that page doesn’t exist!"
I am assuming, It should remain on same page, so that user can retry!.

Please see screenshot below:


I am Expecting, It must on same page if some one add wrong credentials. So that user can retry.

Solution:

See First login screenshot.
You are using Below URL for authentication
https://api.twitter.com/oauth/authenticate?oauth_token=XXXXXXXXXXXXXXXXXXXXXXXX

Authentication URL Must be start with https://twitter.com/xxx like below
https://twitter.com/oauth/authenticate?oauth_token=XXXXXXXXXXXXXXXXXXXXXXXX