Class: Camunda::Console::OAuthToken

Inherits:
OAuthResource show all
Defined in:
lib/camunda/console/o_auth_token.rb

Class Method Summary collapse

Methods inherited from OAuthResource

create_by_uri

Class Method Details

.createObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/camunda/console/o_auth_token.rb', line 6

def self.create
  uri = Camunda.authorization_url
  payload = {
    grant_type: 'client_credentials',
    audience: Camunda.console_audience,
    client_id: Camunda.client_id,
    client_secret: Camunda.client_secret
  }

  create_by_uri(uri: uri, payload: payload)
end