Skip to content

Commit

Permalink
Fixed OIDC settings becasue of new changes in the main settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Dec 4, 2024
1 parent 07fa8e9 commit 2e763b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",)
Expand Down Expand Up @@ -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"]:
Expand Down

0 comments on commit 2e763b8

Please sign in to comment.