Sha256: d627fae33c6cd894fb49deb2f636fbb7fd21fd1e1ddc561a48ddf168b95dabbf

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

class Users::SessionsController < Devise::SessionsController

  def new
    if Ddr::Auth.require_shib_user_authn
      redirect_to user_omniauth_authorize_path(:shibboleth, origin: request.referrer)
    else
      store_location_for(:user, request.referrer)
      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

1 entries across 1 versions & 1 rubygems

Version Path
ddr-models-1.11.0 app/controllers/users/sessions_controller.rb