File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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
2422The ` /login ` endpoint may now take an ` access_token ` in the same way that other
2523authenticated endpoints do. No additional parameters should be specified in the request body.
@@ -43,15 +41,16 @@ new flows.
4341
4442The 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
5655Homeservers should ignore the ` access_token ` parameter if a type other than
5756` m.login.application_service ` has been provided.
You can’t perform that action at this time.
0 commit comments