Class CASClient::Frameworks::Rails::Filter
In: lib/casclient/frameworks/rails/filter.rb
Parent: Object


Public Class methods

Returns the login URL for the current controller. Useful when you want to provide a "Login" link in a GatewayFilter‘ed action.

Clears the given controller‘s local Rails session, does some local CAS cleanup, and redirects to the CAS logout page. Additionally, the request.referer value from the controller instance is passed to the CAS server as a ‘destination’ parameter. This allows RubyCAS server to provide a follow-up login page allowing the user to log back in to the service they just logged out from using a different username and password. Other CAS server implemenations may use this ‘destination’ parameter in different ways. If given, the optional service URL overrides request.referer.