1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-12 19:06:50 +00:00
synapse/tests/handlers
Quentin Gliech 08c56c3acc
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
2025-03-04 13:08:44 +00:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
oidc_test_key.p8 JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
oidc_test_key.pub.pem JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
test_admin.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_appservice.py Support for MSC4190: device management for application services (#17705) 2024-12-04 12:04:49 +01:00
test_auth.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_cas.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_deactivate_account.py Upon deactivation, forget all of the user's rooms (#17400) 2024-07-05 11:56:52 +01:00
test_device.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_directory.py Disable room list publication by default (#18175) 2025-02-24 12:06:16 +00:00
test_e2e_keys.py Create one-off scheduled task to delete old OTKs (#17934) 2024-11-19 11:20:48 +00:00
test_e2e_room_keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_federation.py Remove support for python 3.8 (#17908) 2024-11-06 19:36:01 +00:00
test_federation_event.py Add locking to more safely delete state groups: Part 1 (#18107) 2025-02-03 17:29:15 +00:00
test_message.py Improve event validation (#16908) 2024-03-19 17:52:53 +00:00
test_oauth_delegation.py Support getting the device ID explicitly from MAS (#18174) 2025-03-04 13:08:44 +00:00
test_oidc.py Add redirect_uri option to oidc_providers entries (#18197) 2025-03-03 09:40:48 +00:00
test_password_providers.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_presence.py Fix join being denied after being invited over federation (#18075) 2025-01-27 11:21:10 -06:00
test_profile.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_receipts.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_register.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_room.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_room_list.py Disable room list publication by default (#18175) 2025-02-24 12:06:16 +00:00
test_room_member.py Remove support for python 3.8 (#17908) 2024-11-06 19:36:01 +00:00
test_room_summary.py Fix hierarchy returning 403 when room is accessible through federation (#17194) 2024-08-28 15:45:49 +01:00
test_saml.py feat: Allow multiple values for SSO attribute_requirements via comma separation (#17949) 2025-02-10 15:36:21 +00:00
test_send_email.py Add email.tlsname config option (#17849) 2024-12-17 18:05:38 -06:00
test_sliding_sync.py Sliding Sync: Lazy-loading room members on incremental sync (remember memberships) (#17809) 2024-11-04 10:17:58 -06:00
test_sso.py Update license headers 2023-11-21 15:29:58 -05:00
test_stats.py Update license headers 2023-11-21 15:29:58 -05:00
test_sync.py Fix join being denied after being invited over federation (#18075) 2025-01-27 11:21:10 -06:00
test_typing.py Fix bug where typing replication breaks (#17252) 2024-05-31 16:07:05 +01:00
test_user_directory.py forward requester id to check username for spam callbacks (#17916) 2024-12-13 14:17:41 +00:00
test_worker_lock.py Improve lock performance when a lot of locks are waiting (#16840) 2024-03-14 13:49:54 +00:00