Skip to content

Commit c8e0ed6

Browse files
authored
Hopefully improve words around M_EXCLUSIVE
1 parent b8ab3d0 commit c8e0ed6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

proposals/2778-appservice-login.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ case of software where maintaining password(s) in the configuration is undesirab
1717

1818
## Proposal
1919

20-
A new `type` is to be added to `POST /login`.
21-
22-
`m.login.application_service`
20+
A new `type` is to be added to `POST /login`: `m.login.application_service`
2321

2422
The `/login` endpoint may now take an `access_token` in the same way that other
2523
authenticated endpoints do. No additional parameters should be specified in the request body.
@@ -43,15 +41,16 @@ new flows.
4341

4442
The response body should be unchanged from the existing `/login` specification.
4543

46-
If:
44+
If one of the following conditions are true:
4745

4846
- The access token is not provided
4947
- The access token does not correspond to a appservice
5048
- Or the user has not previously been registered
5149

52-
Then the servers should reject with HTTP 403, with an `errcode` of `"M_FORBIDDEN"`.
50+
Then the servers MUST reject with HTTP 403, with an `errcode` of `"M_FORBIDDEN"`.
5351

54-
If the access token does not correspond to a appservice that manages this user, then the `errcode` should be `"M_EXCLUSIVE"`.
52+
If the access token DOES correspond to a appservice but the user is not inside it's namespace,
53+
then the `errcode` should be `"M_EXCLUSIVE"`.
5554

5655
Homeservers should ignore the `access_token` parameter if a type other than
5756
`m.login.application_service` has been provided.

0 commit comments

Comments
 (0)