Class: SoarAuthenticationToken::CascadeProvider

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

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ CascadeProvider

Returns a new instance of CascadeProvider.



3
4
5
6
# File 'lib/soar_authentication_token/providers/cascade_provider.rb', line 3

def initialize(configuration)
  @configuration = configuration
  validate_configuration
end

Instance Method Details

#fetch(request) ⇒ Object



8
9
10
11
# File 'lib/soar_authentication_token/providers/cascade_provider.rb', line 8

def fetch(request)
  # TODO: refactor this functionality into modules - DON'T DUPLICATE!
  fetch_by_cookie(request) || fetch_by_auth_header(request)
end