Class: OAuth2::AccessToken

Inherits:
Object
  • Object
show all
Defined in:
lib/catchpoint.rb

Instance Method Summary collapse

Instance Method Details

#headersObject

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' => options[:header_format] % Base64.urlsafe_encode64(token)}
end