From 2e763b819b671f95b62a3c2dd45c0421704ae490 Mon Sep 17 00:00:00 2001 From: Andrey Rusakov Date: Tue, 3 Dec 2024 17:24:50 +0100 Subject: [PATCH] Fixed OIDC settings becasue of new changes in the main settings --- default_settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default_settings.py b/default_settings.py index db4bc7b..c1ad6fe 100644 --- a/default_settings.py +++ b/default_settings.py @@ -283,8 +283,8 @@ } FEATURE_FLAGS = { - "oidc": os.environ.get("OIDC_ENABLED", "False") == "False", - "registration": os.environ.get("REGISTRATION_ENABLED", "False") == "False", + "oidc": os.environ.get("OIDC_ENABLED", "False") == "True", + "registration": os.environ.get("REGISTRATION_ENABLED", "True") == "True", } AUTHENTICATION_BACKENDS = ("django.contrib.auth.backends.ModelBackend",) @@ -313,7 +313,7 @@ def discover_endpoints(discovery_url: str) -> dict: def check_oidc() -> bool: - if FEATURE_FLAGS['oidc']: + if not FEATURE_FLAGS['oidc']: return False missing = [] for x in ["OIDC_RP_CLIENT_ID", "ZITADEL_PROJECT", "OIDC_OP_BASE_URL", "OIDC_PRIVATE_KEYFILE"]: