Skip to content

Commit a7c3c29

Browse files
authored
Merge pull request #2264 from matrix-org/travis/msc/feature-flag-2140
MSC2264: Add an unstable feature flag to MSC2140 for clients to detect support
2 parents b8971f4 + f8780e2 commit a7c3c29

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

proposals/2140-terms-of-service-2.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# MSC2140: Terms of Service API for Identity Servers and Integration Managers
22

3+
*Note*: This MSC was added to in [MSC2264](https://github.com/matrix-org/matrix-doc/pull/2264)
4+
35
[MSC1692](https://github.com/matrix-org/matrix-doc/issues/1692) introduces a
46
method for homeservers to require that users read and agree to certain
57
documents before being permitted to use the service. This proposal introduces a
@@ -170,7 +172,7 @@ This endpoint does *not* require authentication.
170172

171173
#### `POST $prefix/terms`:
172174
Requests to this endpoint have a single key, `user_accepts` whose value is
173-
a list of URLs (given by the `url` field in the GET response) of documents that
175+
a list of URLs (given by the `url` field in the GET response) of documents that
174176
the user has agreed to:
175177

176178
```json
@@ -277,6 +279,16 @@ Clients may add IS bindings for 3PIDs that already exist on the user's
277279
Homeserver account by using the `POST /_matrix/client/r0/account/3pid`
278280
to re-add the 3PID.
279281

282+
### Unstable feature flag for transition
283+
284+
In order to allow client implementations to determine if the homeserver they are developed
285+
against supports `id_access_token`, an unstable feature flag of `m.id_access_token`
286+
is to be added to `/versions`. When the flag is `false` or not present, clients must assume
287+
that the homeserver does not support being given `id_access_token` and may receive an error
288+
for doing so. Clients are expected to use the supported specification versions the homeserver
289+
advertises instead of the feature flag's presence once this proposal is included in a release
290+
of the specification.
291+
280292
## Tradeoffs
281293

282294
The Identity Service API previously did not require authentication, and OpenID

0 commit comments

Comments
 (0)