MatrixSynapse/synapse/handlers
Andrew Morgan 847ecdd8fa
Pass SSO IdP information to spam checker's registration function (#9626)
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`.
2021-03-16 12:41:41 +00:00
..
ui_auth
__init__.py
_base.py
account_data.py
account_validity.py
acme.py
acme_issuing_service.py
admin.py
appservice.py
auth.py Convert Requester to attrs (#9586) 2021-03-10 18:15:56 +00:00
cas_handler.py Add support for stable MSC2858 API (#9617) 2021-03-16 11:21:26 +00:00
deactivate_account.py
device.py
devicemessage.py
directory.py
e2e_keys.py
e2e_room_keys.py
events.py
federation.py Optimise missing prev_event handling (#9601) 2021-03-15 13:51:02 +00:00
groups_local.py
identity.py
initial_sync.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
message.py
oidc_handler.py Handle an empty cookie as an invalid macaroon. (#9620) 2021-03-16 11:29:35 +00:00
pagination.py Fix additional type hints. (#9543) 2021-03-09 07:41:32 -05:00
password_policy.py
presence.py
profile.py
read_marker.py
receipts.py
register.py Pass SSO IdP information to spam checker's registration function (#9626) 2021-03-16 12:41:41 +00:00
room.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
room_list.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
room_member.py
room_member_worker.py
saml_handler.py Add support for stable MSC2858 API (#9617) 2021-03-16 11:21:26 +00:00
search.py
set_password.py
sso.py Add support for stable MSC2858 API (#9617) 2021-03-16 11:21:26 +00:00
state_deltas.py
stats.py
sync.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
typing.py
user_directory.py