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 NameRequiredTypeDescription
actionYesstringAction name: token
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
loginYesstringUser login.
passwordYesstringUser 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 NameTypeDescription
actionstringAction name: token
statusstringOperation execution status (success or error).
requestIdobjectRequest unique identifier as specified in the request message.
accessTokenstringJSON Web Token for authorization.
refreshTokenstringJSON Web Token for refreshing access token.