Authentication Services
#
Customer Token Verification Service (API)For the token verification service, a rest api service is expected to be implemented and openned to us in your own system.
#
Request URI#
Request MethodPOST
#
RequestSample Request
` Details of the fields in the above request are given below.
Field Name | Type | Definition |
---|---|---|
deviceId | String | Unique device id created for token validation. This id, token and customer number trio is the information required to validate the token. You are expected to generate a token for the deviceId and customerNo parameters in your system and check it according to these information. |
dlgToken | String | Token that will be verified by your system. |
customerNo | String | Customer number whose token will be verified for. |
deviceHash | String | It is the unique deviceHash information created for the mobile device used by the customer in the Diyalog system. It is transmitted as information only in case you want to log it. |
#
ResponseA string response is expected as a response. The expected string response values ​​and explanations are as follows.
Value (String) | Definition |
---|---|
Validated | Token is validated. |
InvalidToken | Token is not valid. |
ExpiredToken | Token is not validated due to expiration. |
InvalidDeviceId | The token is notverified because the device id is not correct. |
InternalError | The token is not verified due to an unexpected error in your system. |
BadRequest | The token is not verified due to an Diyalog api request is invalid. |
All other responses will be considered token not verified.
#
Agent Token Verification Service (API)For the token verification service, a rest api service is expected to be implemented and openned to us in your own system. This API is required to ensure that the user is authenticated in the main application when the Diyalog is opened in an iframe.
#
Request URI#
Request MethodGET
#
RequestSample Request With Query Parameters
` Details of the fields in the above request are given below.
Field Name | Type | Definition |
---|---|---|
sessionId | String | Unique id that created for session in your agent application. You should create a token for Diyalog to verify this user id, session and token trio is valid. |
token | String | Token that will be verified by your system in order to be sure about the agent is authentication in the openned Diyalog app as iframe. |
userNo | String | Agent user id. |
#
ResponseA following json object response is expected as a response.