Oauth/authenticate redirects logged in user to authorize



I have a rails application which uses devise with omniauth and twitter as strategy.
The problem is that I am logged in at twitter, I granted access to the application and the next time i want to login twitter asks me again if i want to grant access even though i am logged in.
Apparently twitter does an redirect since i see 302 for a millisecond before i get redirected to https://api.twitter.com/oauth/authorize?oauth_token=XXXX

I would expect that a logged in user goes to https://api.twitter.com/oauth/authorize?oauth_token=XXXX and gets redirected to the apps callback url?!?
So why is twitter redirecting to authorize?

Help is highly appreciated.
Best Regards


See [node:15427] for an update on using Sign in with Twitter – there’s a checkbox setting on your application details page you’ll want to enable.


thank you @episod, I spent 2 hours trying to figure out why this was not working as I expected using the omniauth gem until I found your reply eventually on google.


I am using oauth/authenticate with web2py application and it always ask for login,
while I use oauth/authorize it works but not redirects me back to app untill i authorize. It should redirect to the app if user logged in and already has authorized the app. What should i do I dont want user to click authorize every time.