Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /_matrix/client/v3/account/password has authentication set as required but description says it is optional #1807

Closed
zecakeh opened this issue Apr 26, 2024 · 0 comments · Fixed by #1843
Labels
spec-bug Something which is in the spec, but is wrong

Comments

@zecakeh
Copy link
Contributor

zecakeh commented Apr 26, 2024

Link to problem area: https://spec.matrix.org/v1.10/client-server-api/#post_matrixclientv3accountpassword

Issue

The table of the endpoint shows:

Requires authentication: Yes

However the description has these 2 sentences:

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.

Which means that the access token is actually optional.

Expected behaviour

Although that was not a thing before, #1728 has added the possibility to display:

Requires authentication: Optional

A simple change in the OpenAPI definition should be enough to fix that.

I have not done a thorough search to know if other endpoints are affected.

@zecakeh zecakeh added the spec-bug Something which is in the spec, but is wrong label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec-bug Something which is in the spec, but is wrong
Projects
None yet
1 participant