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

Remove enum for POST /login type definition #1776

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Apr 3, 2024

Since the enum is not exhaustive, improve the description of the property instead.

Fixes #825.

Preview: https://pr1776--matrix-spec-previews.netlify.app

Since the enum is not exhaustive, improve the description of the property instead.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@zecakeh zecakeh requested a review from a team as a code owner April 3, 2024 10:35
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the motion (the list is certainly open-ended here) but m.login.sso is probably a poor example still.

This must be a type returned in one of the flows of the
response of the [`GET /login`](/client-server-api/#get_matrixclientv3login)
endpoint, like `m.login.password`, `m.login.token` or
`m.login.sso`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be confusing something but I think m.login.sso is never to be found in POST /login, clients should redirect to a dedicated endpoint instead. Am I smoking stuff?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think that's right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I got influenced by the issue without thinking. It is fixed now.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@richvdh richvdh merged commit 2ea8e0f into matrix-org:main Apr 9, 2024
12 checks passed
@zecakeh zecakeh deleted the login-types branch April 9, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

POST /_matrix/client/r0/login only accepts a type of m.login.password, m.login.token.
3 participants