forked-synapse/synapse/events
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
..
__init__.py Remote dependency on distutils (#9125) 2021-01-15 15:59:20 +00:00
builder.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
snapshot.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
spamcheck.py Pass SSO IdP information to spam checker's registration function (#9626) 2021-03-16 12:41:41 +00:00
third_party_rules.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
utils.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
validator.py Block clients from sending server ACLs that lock the local server out. (#8708) 2020-11-03 12:13:48 +00:00