Class: OpenLoam::Sso::Claims
- Inherits:
-
Data
- Object
- Data
- OpenLoam::Sso::Claims
- Defined in:
- lib/open_loam/sso/claims.rb
Overview
Normalized identity claims, protocol-independent. Every provider's
exchange returns one of these so the rest of the flow never knows whether
it came from OIDC, SAML, or a test fake.
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#email_verified ⇒ Object
readonly
Returns the value of attribute email_verified.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sub ⇒ Object
readonly
Returns the value of attribute sub.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email
6 7 8 |
# File 'lib/open_loam/sso/claims.rb', line 6 def email @email end |
#email_verified ⇒ Object (readonly)
Returns the value of attribute email_verified
6 7 8 |
# File 'lib/open_loam/sso/claims.rb', line 6 def email_verified @email_verified end |
#groups ⇒ Object (readonly)
Returns the value of attribute groups
6 7 8 |
# File 'lib/open_loam/sso/claims.rb', line 6 def groups @groups end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'lib/open_loam/sso/claims.rb', line 6 def name @name end |
#sub ⇒ Object (readonly)
Returns the value of attribute sub
6 7 8 |
# File 'lib/open_loam/sso/claims.rb', line 6 def sub @sub end |
Instance Method Details
#email_verified? ⇒ Boolean
7 |
# File 'lib/open_loam/sso/claims.rb', line 7 def email_verified? = email_verified == true || email_verified.to_s == "true" |