Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

What is the best way to handle omniauth

Gems / Libraries • Asked by Yashi EL

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:

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.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.