Class: Users::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Defined in:
app/controllers/users/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#after_sign_out_path_for(scope) ⇒ Object



13
14
15
16
# File 'app/controllers/users/sessions_controller.rb', line 13

def after_sign_out_path_for(scope)
  return Ddr::Auth.sso_logout_url if Ddr::Auth.require_shib_user_authn
  super
end

#newObject



3
4
5
6
7
8
9
10
11
# File 'app/controllers/users/sessions_controller.rb', line 3

def new
  store_location_for(:user, request.referrer)
  if Ddr::Auth.require_shib_user_authn
    flash.discard(:alert)
    redirect_to user_omniauth_authorize_path(:shibboleth)
  else
    super
  end
end