i2rest_request_client_credentials_token

From i2Rest
Jump to: navigation, search

This object represents parameters which are required to get new client credentials token. This token requires client_id and client_secret to be presented.

Field Type Description Default value
token_endpoint string REQUIRED. Token endpoint

Defines URL to send device access token request

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