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
https://my.ence.do
/api/auth/token
Get a challenge

Response data for successful operation

Name
Type
Description
exp
Number
Expire timestamp
eid
String
EncedoID, public key of the instance.
jti
String
Token id
lbl
String
Label, username
spk
String
Session public key

Phase 2 - response

post
https://my.ence.do
/api/auth/token
Post authentication data

Response data for successful operation

Name
Type
Description
token
String
JWT access token (refered as JWT_TOKEN)

Log entries

Event
Result
Source
LOG_TYPE_AUTH_SUCCESS_INTERNAL
LOG_RESULT_OK
200