Amazon SSO added
This commit is contained in:
parent
2a7491edcd
commit
65723d3063
7 changed files with 25 additions and 3 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue