summary refs log tree commit diff
path: root/synapse/config/oidc.py
diff options
context:
space:
mode:
authorSean Quah <seanq@matrix.org>2023-03-31 10:17:16 +0100
committerSean Quah <seanq@matrix.org>2023-03-31 10:17:16 +0100
commitbf81ee42178b45076422dff0976ba2105c12958c (patch)
tree18e7efae29394c3cdc0a3f88b645ac07f88c117f /synapse/config/oidc.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentSet thread_id column to non-null for event_push_{actions,actions_staging,summ... (diff)
downloadsynapse-bf81ee42178b45076422dff0976ba2105c12958c.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/oidc.py')
-rw-r--r--synapse/config/oidc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/oidc.py b/synapse/config/oidc.py

index df8c422043..77c1d1dc8e 100644 --- a/synapse/config/oidc.py +++ b/synapse/config/oidc.py
@@ -136,6 +136,7 @@ OIDC_PROVIDER_CONFIG_SCHEMA = { "type": "array", "items": SsoAttributeRequirement.JSON_SCHEMA, }, + "enable_registration": {"type": "boolean"}, }, } @@ -306,6 +307,7 @@ def _parse_oidc_config_dict( user_mapping_provider_class=user_mapping_provider_class, user_mapping_provider_config=user_mapping_provider_config, attribute_requirements=attribute_requirements, + enable_registration=oidc_config.get("enable_registration", True), ) @@ -405,3 +407,6 @@ class OidcProviderConfig: # required attributes to require in userinfo to allow login/registration attribute_requirements: List[SsoAttributeRequirement] + + # Whether automatic registrations are enabled in the ODIC flow. Defaults to True + enable_registration: bool