Class: Rack::OAuth2::AccessToken::Bearer
- Inherits:
-
Rack::OAuth2::AccessToken
- Object
- Rack::OAuth2::AccessToken
- Rack::OAuth2::AccessToken::Bearer
- Defined in:
- lib/rack/oauth2/access_token/bearer.rb
Instance Attribute Summary
Attributes inherited from Rack::OAuth2::AccessToken
Instance Method Summary collapse
Methods inherited from Rack::OAuth2::AccessToken
Constructor Details
This class inherits a constructor from Rack::OAuth2::AccessToken
Instance Method Details
#authenticate(request) ⇒ Object
5 6 7 |
# File 'lib/rack/oauth2/access_token/bearer.rb', line 5 def authenticate(request) request.header["Authorization"] = "Bearer #{access_token}" end |