Class: Virgil::Jwt::ConstAccessTokenProvider

Inherits:
AccessTokenProvider show all
Defined in:
lib/virgil/jwt/const_access_token_provider.rb

Overview

Provides an opportunity to use constant access token.

Instance Method Summary collapse

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.

Parameters:

Returns:



47
48
49
# File 'lib/virgil/jwt/const_access_token_provider.rb', line 47

def get_token(token_context)
  access_token
end