Class: Rack::Cas::Client
- Inherits:
-
Struct
- Object
- Struct
- Rack::Cas::Client
- Includes:
- SessionStore::FileSystem
- Defined in:
- lib/rack/cas_client.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#mem ⇒ Object
readonly
Returns the value of attribute mem.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Methods included from SessionStore::FileSystem
#delete_service_session_lookup, #filename_of_service_session_lookup, #read_service_session_lookup, #store_service_session_lookup
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
59 60 61 |
# File 'lib/rack/cas_client.rb', line 59 def app @app end |
#mem ⇒ Object (readonly)
Returns the value of attribute mem.
61 62 63 |
# File 'lib/rack/cas_client.rb', line 61 def mem @mem end |
#options ⇒ Object
Returns the value of attribute options
59 60 61 |
# File 'lib/rack/cas_client.rb', line 59 def @options end |
Instance Method Details
#call(env) ⇒ Object
63 64 65 66 67 68 69 70 71 |
# File 'lib/rack/cas_client.rb', line 63 def call(env) if assets_request?(env); return app.call(env); end if = logout_request?(env); return logout(*) end if request = sso_request?(env); return single_sign_out(request) end if = authenticated?(env); return valid_session(*) end if xml_request?(env); return end redirect_to_cas_for_authentication(env) end |