token
Creates access and refresh tokens by login and password.
Authorization
None
Request Topic and Payload
Topic
dh/request
Payload Representation
{
"action": {string},
"requestId": {object},
"login": {string},
"password": {string}
}
Payload Parameters
Property Name | Required | Type | Description |
---|---|---|---|
action | Yes | string | Action name: token |
requestId | No | object | Request unique identifier, will be passed back in the response message. |
login | Yes | string | User login. |
password | Yes | string | User password. |
Response Topic and Payload
Topic
dh/response/authenticate@{clientId}
Payload Representation
{
"action": {string},
"status": {string},
"requestId": {object},
"accessToken": {string},
"refreshToken": {string}
}
Payload Parameters
Property Name | Type | Description |
---|---|---|
action | string | Action name: token |
status | string | Operation execution status (success or error). |
requestId | object | Request unique identifier as specified in the request message. |
accessToken | string | JSON Web Token for authorization. |
refreshToken | string | JSON Web Token for refreshing access token. |
Updated almost 7 years ago