Class: HubSsoLib::Session
- Inherits:
-
Object
- Object
- HubSsoLib::Session
- Includes:
- DRb::DRbUndumped
- Defined in:
- lib/hub_sso_lib.rb
Overview
Class: Session #
(C) Hipposoft 2006 #
#
Purpose: Session support object, used to store session metadata in #
an insecure cross-application . #
#
Author: A.D.Hodgkinson #
#
History: 22-Oct-2006 (ADH): Created. #
Instance Attribute Summary collapse
-
#session_flash ⇒ Object
Returns the value of attribute session_flash.
-
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
-
#session_return_to ⇒ Object
Returns the value of attribute session_return_to.
-
#session_rotated_key ⇒ Object
Returns the value of attribute session_rotated_key.
-
#session_user ⇒ Object
Returns the value of attribute session_user.
Instance Method Summary collapse
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/hub_sso_lib.rb', line 445 def initialize @session_last_used = Time.now.utc @session_return_to = nil @session_flash = {} @session_user = HubSsoLib::User.new @session_rotated_key = nil rescue => e Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception) raise end |
Instance Attribute Details
#session_flash ⇒ Object
Returns the value of attribute session_flash.
441 442 443 |
# File 'lib/hub_sso_lib.rb', line 441 def session_flash @session_flash end |
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
439 440 441 |
# File 'lib/hub_sso_lib.rb', line 439 def session_last_used @session_last_used end |
#session_return_to ⇒ Object
Returns the value of attribute session_return_to.
440 441 442 |
# File 'lib/hub_sso_lib.rb', line 440 def session_return_to @session_return_to end |
#session_rotated_key ⇒ Object
Returns the value of attribute session_rotated_key.
443 444 445 |
# File 'lib/hub_sso_lib.rb', line 443 def session_rotated_key @session_rotated_key end |
#session_user ⇒ Object
Returns the value of attribute session_user.
442 443 444 |
# File 'lib/hub_sso_lib.rb', line 442 def session_user @session_user end |