Skip to main content

Authentication

Authentication module specification#

Login#

Method: POST

Endpoint

/api/login

Request Payload

{
"username":"admin",
"password":"yourstrongpassword"
}

Reponse

{
"id": "FbKroGm4tZuga",
"created": "2021-04-26T09:36:10.740Z",
"lastupdated": "2021-04-26T09:36:10.740Z",
"firstname": "Portal Admin",
"email": "super@admin.portal",
"lastname": "Super Admin",
"username": "admin",
"verified": true,
"enabled": true
}

Logout#

Method: GET

Endpoint

/api/logout

Response

{
"message": "User logged out successfully"
}