Module: Cas::Authentication
- Defined in:
- lib/bcms_cas/authentication.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.included(controller_class) ⇒ Object
Called when this module is included on the given class.
Class Method Details
.included(controller_class) ⇒ Object
Called when this module is included on the given class.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/bcms_cas/authentication.rb', line 12 def self.included(controller_class) controller_class.send(:include, InstanceMethods) # This reorders the filters applied to requests so that CAS authenticates a user first, before Authorization for documents or pages is checked. controller_class.skip_filter :check_access_to_page controller_class.skip_filter :try_to_stream_file controller_class.before_filter :verify_cas_configured controller_class.before_filter CASClient::Frameworks::Rails::GatewayFilter controller_class.before_filter :login_from_cas_ticket controller_class.before_filter :try_to_stream_file controller_class.before_filter :check_access_to_page end |