summary refs log tree commit diff
path: root/dev-docs/develop
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2025-03-04 14:08:44 +0100
committerGitHub <noreply@github.com>2025-03-04 13:08:44 +0000
commit08c56c3acca4b3a4207c4a28b2b76b98a07403de (patch)
treef16519b76c088099d0fa32c7f16cf401b984b511 /dev-docs/develop
parentAdd `redirect_uri` option to `oidc_providers` entries (#18197) (diff)
downloadsynapse-08c56c3acca4b3a4207c4a28b2b76b98a07403de.tar.xz
Support getting the device ID explicitly from MAS (#18174)
The context for this is that the Matrix spec allows basically anything
in the device ID. With MSC3861, we're restricting this to strings that
can be represented as scopes.
Whilst this works well for next-gen auth sessions, compatibility/legacy
sessions still can have characters that can't be encoded (mainly spaces)
in them.

To work around that, we added in MAS a behaviour where the device_id is
given as an explicit property of the token introspection response, and
remove it from the scope.
Because we don't expect users to rollout new Synapse and MAS versions in
sync, we needed a way to 'advertise' support for this behaviour: the
easiest way to do that was through an extra header in the introspection
response.

On the longer term, I expect MAS and Synapse to move away from the
introspection endpoint, and instead define a specific API for Synapse ->
MAS communication.

PR on the MAS side:
https://github.com/element-hq/matrix-authentication-service/pull/4067
Diffstat (limited to 'dev-docs/develop')
0 files changed, 0 insertions, 0 deletions