Verify Password

Verifies login user name and password. Administrator privileges are required to call this API.

HTTP Request

POST /api/sonar/verify-password
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d login=xeraph \
     -d password=PASSWORD \
     -X POST \
     https://HOSTNAME/api/sonar/verify-password
Request Parameters
KeyRequiredTypeDescriptionNote
loginOStringLogin user nameMaximum 255 characters
passwordOStringPassword

Success Response

{
    "status": "ok"
}

Error Responses

Required argument is missing

HTTP status code 400

{
    "error_code": "null-argument",
    "error_msg": "login should be not null"
}
User is not found

HTTP status code 200

{
    "status": "error",
    "reason": "user-not-found"
}
passwords do not match

HTTP status code 200

{
    "status": "error",
    "reason": "password-mismatch"
}
No privileges to use authentication API

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "no-permission"
}