Class: Users::OmniauthCallbacksController
- Inherits:
-
Devise::OmniauthCallbacksController
- Object
- Devise::OmniauthCallbacksController
- Users::OmniauthCallbacksController
- Defined in:
- lib/generators/templates/omniauth_callbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#failure ⇒ Object
13 14 15 |
# File 'lib/generators/templates/omniauth_callbacks_controller.rb', line 13 def failure redirect_to root_url end |
#strongmind ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/templates/omniauth_callbacks_controller.rb', line 6 def strongmind auth = request.env['omniauth.auth'] @user = User.from_omniauth(auth) session[:full_name] = "#{auth.extra.raw_info['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname']} #{auth.extra.raw_info['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname']}" sign_in_and_redirect @user end |