Sha256: 071aa5a62eba19d36b46c4934d6baa4a0cb4bf3129db628db270810618b51b7c

Contents?: true

Size: 416 Bytes

Versions: 114

Compression:

Stored size: 416 Bytes

Contents

class Users::SessionsController < Devise::SessionsController

  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

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

end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
ddr-models-2.5.3 app/controllers/users/sessions_controller.rb
ddr-models-2.5.2 app/controllers/users/sessions_controller.rb
ddr-models-2.5.1 app/controllers/users/sessions_controller.rb
ddr-models-2.5.0 app/controllers/users/sessions_controller.rb
ddr-models-2.5.0.rc1 app/controllers/users/sessions_controller.rb
ddr-models-2.4.16 app/controllers/users/sessions_controller.rb
ddr-models-2.4.15 app/controllers/users/sessions_controller.rb
ddr-models-2.4.14 app/controllers/users/sessions_controller.rb
ddr-models-2.4.13 app/controllers/users/sessions_controller.rb
ddr-models-2.4.12 app/controllers/users/sessions_controller.rb
ddr-models-2.4.11 app/controllers/users/sessions_controller.rb
ddr-models-3.0.8 app/controllers/users/sessions_controller.rb
ddr-models-3.0.7 app/controllers/users/sessions_controller.rb
ddr-models-3.0.6 app/controllers/users/sessions_controller.rb
ddr-models-3.0.5 app/controllers/users/sessions_controller.rb
ddr-models-3.0.4 app/controllers/users/sessions_controller.rb
ddr-models-3.0.3 app/controllers/users/sessions_controller.rb
ddr-models-3.0.2 app/controllers/users/sessions_controller.rb
ddr-models-3.0.1 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0 app/controllers/users/sessions_controller.rb