Public endpoint used when the login fails with password_expired. The current password authenticates the request on the account provider user portal. Passwords that are not expired are rejected, as this endpoint skips the 2FA verification of the login. On success all the login sessions of the user are logged out and their websockets closed; integration tokens (persistent tokens) stay valid.
Responses
-
Password changed (message
password_changed) -
Rejected:
error_invalid_credentials,error_password_complexity,error_password_length,error_password_history,error_password_minimum_age,error_unknownor malformed request -
The password is not expired (
password_not_expired) -
User portal not configured or unreachable (
password_change_unavailable)
POST
/password/change
curl \
--request POST 'http://localhost:8080/password/change' \
--header "Content-Type: application/json" \
--data '{
"username": "string",
"current_password": "string",
"new_password": "string"
}'
Request examples
{
"username": "string",
"current_password": "string",
"new_password": "string"
}
Response examples (200)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (400)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (403)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (503)
{
"code": 42,
"message": "string",
"error": "string"
}