Class: Virgil::Jwt::ConstAccessTokenProvider
- Inherits:
-
AccessTokenProvider
- Object
- AccessTokenProvider
- Virgil::Jwt::ConstAccessTokenProvider
- Defined in:
- lib/virgil/jwt/const_access_token_provider.rb
Overview
Provides an opportunity to use constant access token.
Instance Method Summary collapse
-
#get_token(token_context) ⇒ AccessToken
Gets access token.
-
#initialize(token) ⇒ ConstAccessTokenProvider
constructor
A new instance of ConstAccessTokenProvider.
Constructor Details
#initialize(token) ⇒ ConstAccessTokenProvider
Returns a new instance of ConstAccessTokenProvider.
39 40 41 |
# File 'lib/virgil/jwt/const_access_token_provider.rb', line 39 def initialize(token) @access_token = token end |
Instance Method Details
#get_token(token_context) ⇒ AccessToken
Gets access token. it does not affect the result.
47 48 49 |
# File 'lib/virgil/jwt/const_access_token_provider.rb', line 47 def get_token(token_context) access_token end |