Module: Caterpillar::Security::ClassMethods
- Defined in:
- lib/caterpillar/security.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#secure_portlet_sessions(options = {}) ⇒ Object
Inserts a before_filter that verifies user agent and checks the shared secret.
Instance Method Details
#secure_portlet_sessions(options = {}) ⇒ Object
Inserts a before_filter that verifies user agent and checks the shared secret. Pass options for before_filter (eg. :only => [:secured_action])
39 40 41 42 43 44 |
# File 'lib/caterpillar/security.rb', line 39 def secure_portlet_sessions( = {}) class_eval <<-EOV include Caterpillar::Security::InstanceMethods before_filter [:authorize_agent, :authorize_request], options EOV end |