Hi Chris, after couple of test run i figure out twitter is hard to work with other oauth2 providers, because twitter api doesn't allow to access other user email.. can you guide me about how to do this more efficiently with twitter. i like to use Twitter, Facebook, Google+, Dribbble, Behance, Azure AD and github auth modules and i'm using devise for the authorization. . also i'm planning to use separate module to have all the provider uids,
user can have many providers (one-to-many)
That's one of the tricky situations you have to handle with Twitter. I need to do a screencast on this, but the idea is pretty simple and here's a link to check out in the meantime: http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/
Basically you setup the OAuth process as normal, but if the user goes through it and doesn't return an email address, you have the add in an additional step to gather their email address and/or password.
Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.