Merge pull request #2027 from matrix-org/travis/1.0/pw-change-uia

Add rationale for UIA on change password, and how access tokens behave
This commit is contained in:
Travis Ralston 2019-05-27 19:48:48 -06:00 committed by GitHub
commit 40cf4620d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -326,13 +326,17 @@ paths:
description: |-
Changes the password for an account on this homeserver.
This API endpoint uses the `User-Interactive Authentication API`_.
This API endpoint uses the `User-Interactive Authentication API`_ to
ensure the user changing the password is actually the owner of the
account.
An access token should be submitted to this endpoint if the client has
an active session.
The homeserver may change the flows available depending on whether a
valid access token is provided.
valid access token is provided. The homeserver SHOULD NOT revoke the
access token provided in the request, however all other access tokens
for the user should be revoked if the request succeeds.
security:
- accessToken: []
operationId: changePassword

View file

@ -0,0 +1 @@
Clarify why User Interactive Auth is used on password changes and how access tokens are handled.