Security API
Authenticate
It creates a session authenticating the user. See also Authentication Model, How to send Auth-Token and Match Session Cookie
POST/rest/security/authenticate
| Query parameters | none |
| Header | Content-Type: application/json |
| Header/Parameter | tenant |
| Body | Credentials |
| Returns | AuthenticationResult |
| Required role | none |
Example request
curl 'http://localhost:8080/mwp/rest/security/authenticate' -H 'Content-Type: application/json' -H 'tenant:default' --data-binary '{"username":"admin","password":"password"}'
Example response
{
"success":true,
"token":"e15c09bc-1e35-43f0-ad85-aa4bd1dba1b9",
"roles":[ "MWP_ADMIN" ],
"userType":"NORMAL_USER"
}