Class: SoarAuthenticationToken::RemoteTokenGenerator

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

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ RemoteTokenGenerator

Returns a new instance of RemoteTokenGenerator.



6
7
8
9
# File 'lib/soar_authentication_token/providers/remote_token_generator.rb', line 6

def initialize(configuration)
  @configuration = configuration
  validate_configuration
end

Instance Method Details

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



15
16
17
18
# File 'lib/soar_authentication_token/providers/remote_token_generator.rb', line 15

def generate(authenticated_identifier:, flow_identifier: nil)
  client = authenticated_client(authenticated_identifier,flow_identifier)
  validate_and_extract_token_from_response(client.request)
end

#inject_store_provider(store_provider) ⇒ Object



11
12
13
# File 'lib/soar_authentication_token/providers/remote_token_generator.rb', line 11

def inject_store_provider(store_provider)
  #ignore the store provider since this generator does not use a store
end