Class: OmniAuth::Strategies::WindowsLive::WindowsLiveLogin::User
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::WindowsLive::WindowsLiveLogin::User
- Defined in:
- lib/omniauth/strategies/windows_live/windowslivelogin.rb
Overview
Holds the user information after a successful sign-in.
'timestamp' is the time as obtained from the SSO token. 'id' is the pairwise unique ID for the user. 'context' is the application context that was originally passed to the sign-in request, if any. 'token' is the encrypted Web Authentication token that contains the UID. This can be cached in a cookie and the UID can be retrieved by calling the processToken method. 'usePersistentCookie?' indicates whether the application is expected to store the user token in a session or persistent cookie.
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(timestamp, id, flags, context, token) ⇒ User
constructor
Initialize the User with time stamp, userid, flags, context and token.
- #usePersistentCookie? ⇒ Boolean
Constructor Details
#initialize(timestamp, id, flags, context, token) ⇒ User
Initialize the User with time stamp, userid, flags, context and token.
381 382 383 384 385 386 387 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 381 def initialize(, id, flags, context, token) self. = self.id = id self.flags = flags self.context = context self.token = token end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
371 372 373 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 371 def context @context end |
#id ⇒ Object
Returns the value of attribute id.
371 372 373 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 371 def id @id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
371 372 373 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 371 def @timestamp end |
#token ⇒ Object
Returns the value of attribute token.
371 372 373 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 371 def token @token end |
Instance Method Details
#usePersistentCookie? ⇒ Boolean
373 374 375 |
# File 'lib/omniauth/strategies/windows_live/windowslivelogin.rb', line 373 def usePersistentCookie? @usePersistentCookie end |