Class: NexaasID::Client::OAuth

Inherits:
OAuth2::Client
  • Object
show all
Defined in:
lib/nexaas_id/client/oauth.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ OAuth

Returns a new instance of OAuth.



6
7
8
9
10
11
12
13
# 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