Module: Authlogic::Cas::ControllerActions::Session

Included in:
Authlogic::Cas::CasAuthenticationController
Defined in:
lib/authlogic_cas/controller_actions/session.rb

Instance Method Summary collapse

Instance Method Details

#destroy_cas_sessionObject



10
11
12
13
14
# File 'lib/authlogic_cas/controller_actions/session.rb', line 10

def destroy_cas_session
  @user_session = ::Authlogic::Cas.authentication_model.find
  @user_session.destroy if @user_session
  redirect_to ::Authlogic::Cas.cas_client.logout_url
end

#new_cas_sessionObject



6
7
8
# File 'lib/authlogic_cas/controller_actions/session.rb', line 6

def new_cas_session
  redirect_to() unless returning_from_cas?
end