11 / 48
The reproduction, distribution and utilization of this document as well as the communication of its contents to others without
express authorization is prohibited. Offenders will be held liable for the payment of damages.
All rights reserved in the event of the grant of patent, utility model or design.
14.04.2020
Version 1.18.0
Authorisation
REST
3.3
Example for initial token request
Request
POST /auth HTTP/1.1
Host: 192.168.100.10
Connection: keep-alive
Content-Length: 48
Origin: http://192.168.100.10
Content-Type: application/json;charset=UTF-8
Referer: http://192.168.100.10/
{
"username":"user-role-edit",
"password":"admin"
}
Response
HTTP/1.1 200 OK
Content-Length: 192
Content-Type: application/json
Server: TornadoServer/4.4.3
{
"access_token":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTI3ODIyODgsIm5iZiI6MTQ5Mjc
3ODY4OCwiaWRlbnRpdHkiOjIsImlhdCI6MTQ5Mjc3ODY4OH0.aYEc3YNgkGDYEIXXVb5BPKyDTWrR
zx100zxOuqOngco"
}
3.4
Using tokens
All requests except for auth/POST require the keyword Bearer and the token in the Authorization field of the header.