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