API Model
Authentication Model
Authentication Model Request
Model of the authentication request. See also Authentication Api
Field | Type | Mandatory | Meaning |
---|---|---|---|
username | string | yes | username |
password | string | yes | password |
Example
{ "username":"admin", "password":"password" }
Authentication Model Response
Model of the authentication response
Field | Type | Mandatory | Meaning |
---|---|---|---|
username | string | yes | username |
string | yes | user's email | |
roles | array of strings | yes | list of user roles
|
attributes | map string -> string | yes | custom attributes mapped in the security manager |
userType | string | yes | password |
passwordExpired | string | yes | password |
Example response
{ "success":true, "token":"e15c09bc-1e35-43f0-ad85-aa4bd1dba1b9", "roles":[ "100","900" ], "userType":"NORMAL_USER" }