Class: Rack::OAuth2::AccessToken::Bearer

Inherits:
Rack::OAuth2::AccessToken show all
Defined in:
lib/rack/oauth2/access_token/bearer.rb

Instance Attribute Summary

Attributes inherited from Rack::OAuth2::AccessToken

#raw_attributes

Instance Method Summary collapse

Methods inherited from Rack::OAuth2::AccessToken

#initialize, #token_response

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