Class: Soar::Authentication::Identity::Provider::Staff
- Inherits:
-
Object
- Object
- Soar::Authentication::Identity::Provider::Staff
- Defined in:
- lib/soar/authentication/identity/provider/staff.rb
Instance Method Summary collapse
-
#initialize(directory: nil, authenticated_identifier: nil) ⇒ Staff
constructor
A new instance of Staff.
- #uuid ⇒ Object
Constructor Details
#initialize(directory: nil, authenticated_identifier: nil) ⇒ Staff
Returns a new instance of Staff.
9 10 11 12 13 14 |
# File 'lib/soar/authentication/identity/provider/staff.rb', line 9 def initialize(directory: nil, authenticated_identifier: nil) @directory = directory identity_provider = Soar::Registry::Identity::Provider::Staff::Email.new(directory: @directory) identity_registry = Soar::Registry::Identity.new(identity_provider) @attributes = identity_registry.get_attributes(authenticated_identifier) end |
Instance Method Details
#uuid ⇒ Object
16 17 18 19 |
# File 'lib/soar/authentication/identity/provider/staff.rb', line 16 def uuid primary_key = @directory.index[0] @attributes[primary_key] end |