Rails omniauth - twitter asking for app authorization each time user logs in

前端 未结 7 789
情歌与酒
情歌与酒 2021-02-06 13:48

In Railscast: http://railscasts.com/episodes/241-simple-omniauth Ryan uses omniauth for logins. In the video when he clicks on the login button the first time Twitter asks the u

7条回答
  •  青春惊慌失措
    2021-02-06 14:17

    Adding a non-rails answer here.

    Just be sure to check in the twitter settings for your app that the "Allow this application to be used to Sign in with Twitter" checkbox is selected. Otherwise Twitter will always redirect you to the authorize page instead of authenticate.

    I spend 45 minutes troubleshooting the rails app before finally checking the twitter settings, hopefully this will save someone some time.

提交回复
热议问题