Closed evalentini closed 10 years ago
Devise is the recommended authentication (source: railscasts, railstutorial, ruby-toolbox) https://github.com/plataformatec/devise
Devise uses another gem OmniAuth for authentication with fb, twitter, github and OpenID which is google / gmail (?) https://github.com/intridea/omniauth
Seems like the cleanest way to do this:
devise_for :database_authenticatable, :omniauthable, :omniauth_providers => [:twitter]
Users should be allowed to login through their gmail, provided username matches gmail email address. Discuss in more detail during our call on 10/21.