2011
10.06
10.06
I’m adding multiple authentications to a web app I am working on using Omniauth. I ran into an error early on with integrating twitter into my rails app.
I followed along with the install instructions on the wiki, however when I hit the url: /auth/twitter which should have redirected me to the twitter oauth authorization page, I got the following:
I searched the net and found many others getting the same error, but none of the suggestions for correction seemed to match the issue I was having.
Then I realized, the setup instructions on the omni auth wiki list the configuration as:
Rails.application.config.middleware.use OmniAuth::Builder do provider :developer unless Rails.env.production? provider :twitter, ENV['id'], ENV['secret'] end
When they should have been:
Rails.application.config.middleware.use OmniAuth::Builder do provider :developer unless Rails.env.production? provider :twitter, 'id', 'secret' end
I hope this helps someone else!
