Difference between revisions of "I2Camunda i2rest get access token"
(Created page with "{{DISPLAYTITLE:i2rest_get_access_token}} This object represents parameters which are required to get [https://tools.ietf.org/html/rfc6749#section-5.1 access token on base acce...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:i2rest_get_access_token}} | {{DISPLAYTITLE:i2rest_get_access_token}} | ||
− | This object represents parameters which are required to get [https://tools.ietf.org/html/rfc6749#section-5.1 access token on base access code | + | This object represents parameters which are required to get [https://tools.ietf.org/html/rfc6749#section-5.1 access token] on base access code that was received from i2Rest bridge using i2rest_wait_authorization. |
{| style="width: 100%; vertical-align:top; border-collapse:collapse" border="1" | {| style="width: 100%; vertical-align:top; border-collapse:collapse" border="1" | ||
| style="width: 10%; padding: 5px"|'''Field''' | | style="width: 10%; padding: 5px"|'''Field''' |
Latest revision as of 16:52, 11 September 2020
This object represents parameters which are required to get access token on base access code that was received from i2Rest bridge using i2rest_wait_authorization.
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