Class: SoarAuthenticationToken::RemoteTokenValidator

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

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ RemoteTokenValidator

Returns a new instance of RemoteTokenValidator.



5
6
7
8
# File 'lib/soar_authentication_token/providers/remote_token_validator.rb', line 5

def initialize(configuration)
  @configuration = configuration
  validate_configuration
end

Instance Method Details

#inject_store_provider(store_provider) ⇒ Object



10
11
12
# File 'lib/soar_authentication_token/providers/remote_token_validator.rb', line 10

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

#validate(authentication_token:, flow_identifier: nil) ⇒ Object



14
15
16
17
# File 'lib/soar_authentication_token/providers/remote_token_validator.rb', line 14

def validate(authentication_token:,flow_identifier: nil)
  response = send_request(authentication_token,flow_identifier)
  validate_and_extract_information_from_response(response)
end