Sha256: 583acc50a408f6718a1fb539eeec3550c0cfecf09b1e33f65da84aaf133852a1
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
require 'oauth2' # OAuth2 client used by NexaasID::Client::Application and NexaasID::Client::Identity. # Provides direct access to the underlying OAuth2 API. class NexaasID::Client::OAuth < OAuth2::Client def initialize(config) super( config.application_token, config.application_secret, site: config.url, connection_opts: { headers: headers } ) end private def headers { 'Accept': 'application/json', 'Content-type': 'application/json' } end end
Version data entries
5 entries across 5 versions & 1 rubygems