mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
847ecdd8fa
Fixes https://github.com/matrix-org/synapse/issues/9572 When a SSO user logs in for the first time, we create a local Matrix user for them. This goes through the register_user flow, which ends up triggering the spam checker. Spam checker modules don't currently have any way to differentiate between a user trying to sign up initially, versus an SSO user (whom has presumably already been approved elsewhere) trying to log in for the first time. This PR passes `auth_provider_id` as an argument to the `check_registration_for_spam` function. This argument will contain an ID of an SSO provider (`"saml"`, `"cas"`, etc.) if one was used, else `None`. |
||
---|---|---|
.. | ||
__init__.py | ||
oidc_test_key.p8 | ||
oidc_test_key.pub.pem | ||
test_admin.py | ||
test_appservice.py | ||
test_auth.py | ||
test_cas.py | ||
test_device.py | ||
test_directory.py | ||
test_e2e_keys.py | ||
test_e2e_room_keys.py | ||
test_federation.py | ||
test_message.py | ||
test_oidc.py | ||
test_password_providers.py | ||
test_presence.py | ||
test_profile.py | ||
test_register.py | ||
test_saml.py | ||
test_stats.py | ||
test_sync.py | ||
test_typing.py | ||
test_user_directory.py |