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-3.0.0.rc6 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.rc5 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.rc4 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.rc3 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.rc2 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.rc1 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.22 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.21 app/controllers/users/sessions_controller.rb
ddr-models-2.4.10 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.20 app/controllers/users/sessions_controller.rb
ddr-models-2.4.9 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.18 app/controllers/users/sessions_controller.rb
ddr-models-2.4.8 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.17 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.16 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.15 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.14 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.13 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.12 app/controllers/users/sessions_controller.rb
ddr-models-3.0.0.beta.11 app/controllers/users/sessions_controller.rb