Class: SoarAuthenticationToken::TokenValidator

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

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ TokenValidator

Returns a new instance of TokenValidator.



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

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

Instance Method Details

#inject_store_provider(store_provider) ⇒ Object



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

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

#validate(authentication_token:, request_information: {}, flow_identifier: nil) ⇒ Object



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

def validate(authentication_token:, request_information: {}, flow_identifier: nil)
  @provider.validate(authentication_token: authentication_token,
                     request_information:  request_information,
                     flow_identifier:      flow_identifier)
end