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

Specify that appservice login and register fail on incorrect as_tokens #1744

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that the `/login` and `/register` endpoints should fail when using the `m.login.application_service` login type without a valid `as_token`.
4 changes: 4 additions & 0 deletions content/application-service-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ an application service-defined namespace will receive the same
`M_EXCLUSIVE` error code, but only if the application service has
defined the namespace as `exclusive`.

If either endpoint is called with the `m.login.application_service` login type,
tulir marked this conversation as resolved.
Show resolved Hide resolved
but without a valid `as_token`, the endpoints will return an error with the
`M_MISSING_TOKEN` or `M_UNKNOWN_TOKEN` error code.
tulir marked this conversation as resolved.
Show resolved Hide resolved

#### Pinging

{{% added-in v="1.7" %}}
Expand Down