Class: OAuth2::AccessToken
- Inherits:
-
Object
- Object
- OAuth2::AccessToken
- Defined in:
- lib/catchpoint.rb
Instance Method Summary collapse
-
#headers ⇒ Object
Oauth2 does not base64 encode the token (which Catchpoint wants), so we do it instead:.
Instance Method Details
#headers ⇒ Object
Oauth2 does not base64 encode the token (which Catchpoint wants), so we do it instead:
10 11 12 |
# File 'lib/catchpoint.rb', line 10 def headers {'Authorization' => [:header_format] % Base64.urlsafe_encode64(token)} end |