Class: Rack::OAuth2::AccessToken::Authenticator
- Inherits:
-
Object
- Object
- Rack::OAuth2::AccessToken::Authenticator
- Defined in:
- lib/rack/oauth2/access_token/authenticator.rb
Instance Method Summary collapse
- #authenticate(request) ⇒ Object
-
#initialize(token) ⇒ Authenticator
constructor
A new instance of Authenticator.
Constructor Details
#initialize(token) ⇒ Authenticator
Returns a new instance of Authenticator.
5 6 7 |
# File 'lib/rack/oauth2/access_token/authenticator.rb', line 5 def initialize(token) @token = token end |
Instance Method Details
#authenticate(request) ⇒ Object
9 10 11 |
# File 'lib/rack/oauth2/access_token/authenticator.rb', line 9 def authenticate(request) @token.authenticate(request) end |