Change your own password

Replaces the password of the account named by the access token presented with this
request. It changes no other account: the request body carries no user, e-mail or
tenant identifier, so there is nothing in it to aim elsewhere.

The current password is required even though the session is already valid.
Reauthentication on a credential change is the settled industry pattern (OWASP ASVS
2.1.x; Keycloak, Auth0 and Okta all require it) and it is what stops a stolen access
token from taking the account over permanently.

Password policy — at least 12 characters, with at least one lower-case letter,
one upper-case letter, one digit and one special character; and different from the last
5 passwords of this account.

One refusal for three causes. A wrong current password, a new password that
violates the policy and a new password that repeats a recent one all answer with a
byte-identical 400, so a caller cannot tell which was true. A subject
whose credential is held by an external identity provider is refused differently, with
409 and its own problem type: telling such a caller their password is

wrong for an account that has none would be untrue and unactionable.

On success every live token of the account is refused from that moment on and the
caller is expected to sign in again. A refusal writes nothing.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The caller's current password and its replacement. No account identifier: the subject is the one named by the access token.

Request to change the password of the account named by the access token. Carries no user, e-mail or tenant identifier: the subject is never negotiable.

password
required
length ≥ 1

The caller's current password. Required even though the session is already valid: reauthentication is what makes a stolen access token insufficient to take the account over permanently.

password
required
length ≥ 1

The replacement password. At least 12 characters, with at least one lower-case letter, one upper-case letter, one digit and one special character; it must also differ from the last 5 passwords of this account. A value that fails either rule is refused with the same generic problem body as a wrong current password, so the caller cannot tell the causes apart.

Responses
204

Password changed. Every previously issued token for this account is now refused, so the caller must sign in again. No body is returned.

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/problem+json