forked-synapse/tests/handlers
Brendan Abolivier 2d3bd9aa67
Add a module callback to set username at registration (#11790)
This is in the context of mainlining the Tchap fork of Synapse. Currently in Tchap usernames are derived from the user's email address (extracted from the UIA results, more specifically the m.login.email.identity step).
This change also exports the check_username method from the registration handler as part of the module API, so that a module can check if the username it's trying to generate is correct and doesn't conflict with an existing one, and fallback gracefully if not.

Co-authored-by: David Robertson <davidr@element.io>
2022-01-26 14:21:13 +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 Add knock information in admin exported data (#11171) 2021-10-28 18:54:38 +01:00
test_appservice.py Clarifications and small fixes to to-device related code (#11247) 2021-11-09 14:31:15 +00:00
test_auth.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
test_cas.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
test_deactivate_account.py Remove account data (including client config, push rules and ignored users) upon user deactivation. (#11621) 2022-01-24 13:37:00 +00:00
test_device.py Delete messages from device_inbox table when deleting device (#10969) 2021-10-27 16:01:18 +01:00
test_directory.py Fix checking whether a room can be published on creation. (#11392) 2021-11-19 15:19:32 +00:00
test_e2e_keys.py Cache empty responses from /user/devices (#11587) 2022-01-05 13:33:28 +00:00
test_e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_federation.py Refactor the way we set outlier (#11634) 2022-01-05 12:26:11 +00:00
test_message.py Allow events to be created with no prev_events (MSC2716) (#11243) 2021-12-10 23:08:51 -06:00
test_oidc.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
test_password_providers.py Add a module callback to set username at registration (#11790) 2022-01-26 14:21:13 +00:00
test_presence.py Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
test_profile.py Use direct references for configuration variables (part 7). (#10959) 2021-10-04 07:18:54 -04:00
test_receipts.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
test_register.py Misc typing fixes for tests, part 2 of N (#11330) 2021-11-16 10:41:35 +00:00
test_room_summary.py Fix a bug that corrupted the cache of federated space hierarchies (#11775) 2022-01-20 11:03:42 +00:00
test_room.py Pull out encrypted_by_default tests from user_directory tests (#10752) 2021-09-06 11:37:54 +01:00
test_saml.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
test_send_email.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_stats.py Don't drop user dir deltas when server leaves room (#10982) 2021-10-06 12:56:45 +00:00
test_sync.py Test that bans win a join against a race when computing /sync response (#11701) 2022-01-07 16:43:21 +00:00
test_typing.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
test_user_directory.py Fix adding excluded users to the private room sharing tables when joining a room (#11143) 2021-10-21 17:48:59 +01:00