Security API
Current user
it creates a session authenticating the user
GET/rest/security/currentuser
Query parameters | none |
Header |
|
Header/Parameter | tenant |
Body | none |
Returns | SessionUser |
Required role | none |
Example request
curl 'http://localhost:8080/mwp/rest/security/currentuser' -H 'Content-Type: application/json' -H 'tenant:default' -H "auth-token:2dd63c02-42a6-46d6-9c46-5fa8d21bc669.local"
Example response
{ "email":"admin@email.com", "name" : "admin", "userAttributes":[], "roles":["MWP_ADMIN"], "userType":"NORMAL_USER", "passwordExpired" : false }