Authentication

Requirements

  • Existing account

How to authenticate

POST /login
  • Authenticates user using name and password.
  • Returns authentication token to use for calling other endpoints.

Example

Request

POST /login
{
    "name": "judy.corbett",
    "password": "secretPassword",
    "tenant": "default"
}

Response

{
    "logged": true,
    "hasPassword": true,
    "isUnlocked": true,
    "token": "ADFFQBYXP2NVGR6PAP3KOR27FETP6",
    "tenant": "default",
    "rights": [ …​ ],
    "settings": {…​},
    "user": {…​}
}
  • Response message contains basic information about logged in user and login properties.
  • Please note the Authentication tokenADFFQBYXP2NVGR6PAP3KOR27FETP6