User authentication
Those endpoints allow to authenticate the User or Master based on passphrase.
These two endpoints are wide open and do not need any authorization data.
The authentication procedure requires a valid RTC to be set.
Phase 1 - challenge
Get a challenge
GET
https://my.ence.do/api/auth/token
Get a challenge data to perform user authentication based on it.
Response data for successful operation
Name | Type | Description |
---|---|---|
| Number | Expire timestamp |
| String | EncedoID, public key of the instance. |
| String | Token id |
| String | Label, username |
| String | Session public key |
Phase 2 - response
Post authentication data
POST
https://my.ence.do/api/auth/token
Post authentication data signed based on user passphrase.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
auth* | String | Authentication data to be validated by the device |
Response data for successful operation
Name | Type | Description |
---|---|---|
| String | JWT access token (refered as JWT_TOKEN) |
Log entries
Event | Result | Source |
---|---|---|
LOG_TYPE_AUTH_SUCCESS_INTERNAL | LOG_RESULT_OK | 200 |
Last updated