class ADAL::UserInformation
Basically just a holder for the id token.
Constants
- ID_TOKEN_FIELDS
Attributes
displayable_id[R]
unique_id[R]
Public Class Methods
new(claims)
click to toggle source
Constructs a new UserInformation
.
@param Hash claims
Claims from an id token. The exact claims will vary, so whatever is not found in the claims will be nil.
# File lib/adal/user_information.rb, line 39 def initialize(claims) claims.each { |k, v| instance_variable_set("@#{k}", v) } @unique_id = oid || sub || unique_id @displayable_id = upn || email end
Public Instance Methods
==(other)
click to toggle source
# File lib/adal/user_information.rb, line 45 def ==(other) unique_id == other.unique_id && displayable_id == other.displayable_id end