Sha256: a4e7d509f3f34016d61694b63d944b35df214e4ce61d826e3b5a44b03ff26c93
Contents?: true
Size: 559 Bytes
Versions: 5
Compression:
Stored size: 559 Bytes
Contents
module Roqua module CoreApi module Sessions class OAuthSession < AuthSession attr_reader :access_token def initialize(access_token:, **additional_arguments) @access_token = access_token super additional_arguments end def logout_url(redirect_to:) "#{core_host}/session/destroy?token=#{access_token}&redirect_to=#{CGI.escape redirect_to}" end private def headers {"Authorization" => "Bearer #{access_token}"} end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems