Class: SoarAuthenticationToken::TokenGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/soar_authentication_token/token_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ TokenGenerator

Returns a new instance of TokenGenerator.



3
4
5
6
7
# File 'lib/soar_authentication_token/token_generator.rb', line 3

def initialize(configuration)
  @configuration = configuration
  validate_configuration
  instantiate_provider
end

Instance Method Details

#generate(authenticated_identifier:, flow_identifier: nil) ⇒ Object



13
14
15
16
# File 'lib/soar_authentication_token/token_generator.rb', line 13

def generate(authenticated_identifier:, flow_identifier: nil)
  @provider.generate(authenticated_identifier: authenticated_identifier,
                     flow_identifier:          flow_identifier)
end

#inject_store_provider(store_provider) ⇒ Object



9
10
11
# File 'lib/soar_authentication_token/token_generator.rb', line 9

def inject_store_provider(store_provider)
  @provider.inject_store_provider(store_provider)
end