Amazon SSO added

This commit is contained in:
Christoph Haas 2017-04-17 13:11:44 +02:00
parent 2a7491edcd
commit 65723d3063
7 changed files with 25 additions and 3 deletions

View file

@ -15,6 +15,10 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
login_via 'Google'
end
def amazon
login_via 'Amazon'
end
def login_via(provider_name)
# You need to implement the method below in your model (e.g. app/models/user.rb)
@user = User.from_omniauth(request.env["omniauth.auth"])