Auth Documentation
Login with Username and Password
Endpoint:
POST /mdp/app-safe-idm/auth/login
Description:
Submit your username and password to receive a JWT token for authenticated requests.
Example Request (cURL):
curl -X POST https://yourdomain.com/mdp/app-safe-idm/auth/login \
-H "Content-Type: application/json" \
-d '{
"userName": "joe@example.com",
"password": "xxxxxxx"
}'
Success Response:
{
"jwtToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "dXNlcl9yZWZyZXNoX3Rva2Vu"
}
Error Responses:
Wrong Password:
{
"errorDate": "2025-08-04T08:37:24.129+0000",
"errorMessage": "Invalid UserName or Password!"
}
User Not Found or Inactive:
{
"errorDate": "2025-08-04T08:37:50.860+0000",
"errorMessage": "UserNotfound Or Inactive joe@example.com"
}
Notes:
- Ensure the
Content-Type
header is set toapplication/json
. - Use the
jwtToken
in theAuthorization
header for all subsequent API calls:
Authorization: Bearer <jwtToken>