Class: SsoClient::OmniauthCallbacksController
- Inherits:
-
Devise::OmniauthCallbacksController
- Object
- Devise::OmniauthCallbacksController
- SsoClient::OmniauthCallbacksController
- Defined in:
- app/controllers/sso_client/omniauth_callbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#identity ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/sso_client/omniauth_callbacks_controller.rb', line 2 def identity user = User.from_omniauth(request.env['omniauth.auth']) flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Identity" sign_in user, :event => :authentication redirect_to stored_location_for(:user) || main_app.root_path end |