auth: Make full_name_validated attr of generic OIDC configurable.

This will be useful for deployments that want to just use the full name
provided by the IdP and thus skip the registration form. Also in
combination with disabling name changes in the organization, can force
users to just use that name without being able to change it.
This commit is contained in:
Mateusz Mandera
2021-05-23 12:00:20 +02:00
committed by Tim Abbott
parent e17758f8ad
commit 47a4a9193f
4 changed files with 12 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ SOCIAL_AUTH_APPLE_EMAIL_AS_USERNAME = True
# Generic OpenID Connect:
SOCIAL_AUTH_OIDC_ENABLED_IDPS: Dict[str, Dict[str, Optional[str]]] = {}
SOCIAL_AUTH_OIDC_FULL_NAME_VALIDATED = False
# Other auth
SSO_APPEND_DOMAIN: Optional[str] = None