Class: OpenLoam::Sso::Claims

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#email ⇒ Object (readonly)

Returns the value of attribute email

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of sub



6
7
8
# File 'lib/open_loam/sso/claims.rb', line 6

def sub
  @sub
end

Instance Method Details

#email_verified? ⇒ Boolean

Returns:

  • (Boolean)


7
# File 'lib/open_loam/sso/claims.rb', line 7

def email_verified? = email_verified == true || email_verified.to_s == "true"