I am trying to configure Twitter login using Devise / OmniAuth, following the latest RailsCast for this. I registered the Twitter app developer using the URL-address of a callback: myiphere:port/users/auth/twitter.
I followed everything up to T on RailsCast, but every time I click the link Sign In With Twitter, I get it right away OAuth::Unauthorized 401 Unauthorized on the myiphere:port/users/auth/twitter page.
I think I correctly defined the key using export TWITTER_CONSUMER_KEY=MYKEYINSERTEDHERE export TWITTWR_CONSUMER_SECRET=MYSECRETINSERTEDHERE rails server. I tried most of the solutions that I can find on the Internet, but all of this failed. Almost all answers relate to returning to your site after logging in, I can’t get to any Twitter screen, just error 401 on the page /users/auth/twitter.
source
share