i2rest_get_access_token
This object represents parameters which are required to get access token on base access code.
Field | Type | Description | Default value |
token_endpoint | string | REQUIRED. Token endpoint
Defines URL to send access token request |
|
bridge_endpoint | string | REQUIRED. Bridge endpoint
Defines URL that will be used as "redirect_uri" parameter access token request |
|
access_code | string | REQUIRED. Access code
This is the value of access code received on i2rest_wait_authorization that has to be presented to obtain access token |
|
client_id, client_secret | string | REQUIRED. Client's ID and password
i2Camunda will use these values as client_id and client_secret parameters of the request |
|
on_error | string | BPMN error code
If defined, i2Camunda will throw BPMN error with this code instead of creating incident. |
|
on_401 | string | "Unauthorized" BPMN error code
This code will be used for throwing BPMN error when token endpoint returns response with HTTP status 401 unauthorized or "access_denied". If not defined, the incident will be created |
|
on_expired | string | "Device code expired" BPMN error code
This code will be used for throwing BPMN error when token endpoint returns "expired_token". If not defined, the incident will be created |
Upon response, i2camunda will save access token response parameters in i2camunda_response Json variable (the name of this variable can be overridden in i2camunda configuration object):
- access_token
- token_type
- expires_in
- refresh_token
- scope