evalentini / actprep

ACT test prep app
1 stars 0 forks source link

Allow users to log in with gmail. #18

Closed evalentini closed 10 years ago

evalentini commented 11 years ago

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.

MattCowski commented 11 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]