class NexaasID::Client::OAuth

OAuth2 client used by NexaasID::Client::Application and NexaasID::Client::Identity. Provides direct access to the underlying OAuth2 API.

Public Class Methods

new(config) click to toggle source
Calls superclass method
# File lib/nexaas_id/client/oauth.rb, line 6
def initialize(config)
  super(
    config.application_token,
    config.application_secret,
    site: config.url,
    connection_opts: { headers: headers }
  )
end

Private Instance Methods

headers() click to toggle source
# File lib/nexaas_id/client/oauth.rb, line 17
def headers
  { 'Accept': 'application/json', 'Content-type': 'application/json' }
end