Add m.id_access_token flag (#5930)

Adds a flag to `/versions`' `unstable_features` section indicating that this Synapse understands what an `id_access_token` is, as per https://github.com/matrix-org/synapse/issues/5927#issuecomment-523566043

Fixes #5927
This commit is contained in:
Andrew Morgan 2019-08-30 15:22:51 +01:00 committed by GitHub
parent d19505a8c1
commit 4765f0cfd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

1
changelog.d/5930.misc Normal file
View File

@ -0,0 +1 @@
Add temporary flag to /versions in unstable_features to indicate this Synapse supports receiving id_access_token parameters on calls to identity server-proxying endpoints.

View File

@ -44,7 +44,12 @@ class VersionsRestServlet(RestServlet):
"r0.5.0",
],
# as per MSC1497:
"unstable_features": {"m.lazy_load_members": True},
"unstable_features": {
"m.lazy_load_members": True,
# as per https://github.com/matrix-org/synapse/issues/5927
# to be removed in r0.6.0
"m.id_access_token": True,
},
},
)