Class: SsoClient::OmniauthCallbacksController

Inherits:
Devise::OmniauthCallbacksController
  • Object
show all
Defined in:
app/controllers/sso_client/omniauth_callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#identityObject



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"
   user, :event => :authentication
  redirect_to stored_location_for(:user) || main_app.root_path
end