Version 2.6.5
String consisting of "Basic " and the base64 encoded "user:password". This applies to user/password authentication only.
Get access token
X-Access-Token
{ "title": "authentication", "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "isAuthenticated" ], "properties": { "user": { "type": "string" }, "accessToken": { "type": "string" }, "message": { "type": "string" }, "role": { "type": "string" }, "isAuthenticated": { "type": "boolean" }, "isPermitted": { "type": "boolean", "default": false }, "sessionTimeout": { "type": "integer", "default": 1800 }, "enableTouch": { "type": "boolean", "default": true } } }
{ "user": "root", "accessToken": "550e8400-e29b-11d4-a716-446655440000", "role": "all", "isAuthenticated": true, "isPermitted": false, "sessionTimeout": 1800, "enableTouch": true }
Unauthorized!
{ "user": "root", "message": "User or password are invalid", "isAuthenticated": false, "isPermitted": false }