THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!

Apache Kylin : Analytical Data Warehouse for Big Data

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

POST /kylin/api/user/authentication

Request Header

Authorization data encoded by basic auth is needed in the header, such as: Authorization:Basic {data}
You can generate {data} by using below python script

python -c "import base64; print base64.standard_b64encode('$UserName:$Password')"

Response Body

  • userDetails - Defined authorities and status of current user.

Response Sample

{
    "userDetails": {
        "username": "ADMIN",
        "password": "$2a$10$o3ktIWsGYxXNuUWQiYlZXOW5hWcqyNAFQsSSCSEWoC/BRVMAUjL32",
        "authorities": [
            {
                "authority": "ROLE_ADMIN"
            },
            {
                "authority": "ROLE_ANALYST"
            },
            {
                "authority": "ROLE_MODELER"
            },
            {
                "authority": "ALL_USERS"
            }
        ],
        "disabled": false,
        "defaultPassword": false,
        "locked": false,
        "lockedTime": 0,
        "wrongTime": 0,
        "uuid": "29384f19-140a-f651-2f83-c331bcb25400",
        "last_modified": 1594810732763,
        "version": "3.9.9.1"
    }
}

Curl Example

curl -c /path/to/cookiefile.txt -X POST -H "Authorization: Basic XXXXXXXXX" 
-H 'Content-Type: application/json' http://<host>:<port>/kylin/api/user/authentication

...