Class: SoarAuthenticationToken::TokenProvider
- Inherits:
-
Object
- Object
- SoarAuthenticationToken::TokenProvider
- Defined in:
- lib/soar_authentication_token/token_provider.rb
Instance Method Summary collapse
- #fetch(request) ⇒ Object
-
#initialize(configuration) ⇒ TokenProvider
constructor
A new instance of TokenProvider.
Constructor Details
#initialize(configuration) ⇒ TokenProvider
Returns a new instance of TokenProvider.
3 4 5 6 7 |
# File 'lib/soar_authentication_token/token_provider.rb', line 3 def initialize(configuration) @configuration = configuration validate_configuration instantiate_provider end |
Instance Method Details
#fetch(request) ⇒ Object
9 10 11 |
# File 'lib/soar_authentication_token/token_provider.rb', line 9 def fetch(request) @provider.fetch(request) end |