Repository URL to install this package:
|
Version:
2.2.0 ▾
|
require_relative '../authenticator.rb'
class TokenAuthenticator < Authenticator
attr_reader :token
def initialize(account_url, token)
@token = token
super account_url
end
def headers
{ Authorization: "Bearer #{@token}",
"X-NAMARA-CLIENT": 'ruby',
"X-NAMARA-CLIENT-VERSION": Namara::VERSION }
end
end