From e9c36dffd56d89f744ad8224190c4f4818edb527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Fri, 29 Mar 2024 17:17:06 +0100 Subject: [PATCH] fix: OIDC feature detection --- CHANGES.rst | 1 + canaille/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 30ade5d1..39b5765e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Fixed ^^^^^ - Fix the default LDAP USER_FILTER value +- Fix OIDC feature detection [0.0.43] - 2024-03-29 --------------------- diff --git a/canaille/__init__.py b/canaille/__init__.py index 5226f5e4..f12644ce 100644 --- a/canaille/__init__.py +++ b/canaille/__init__.py @@ -95,7 +95,7 @@ def setup_flask(app): return { "debug": app.debug or app.config.get("TESTING", False), "has_smtp": "SMTP" in app.config["CANAILLE"], - "has_oidc": "CANAILLE_OIDC" in app.config["CANAILLE"], + "has_oidc": "CANAILLE_OIDC" in app.config, "has_password_recovery": app.config["CANAILLE"]["ENABLE_PASSWORD_RECOVERY"], "has_registration": app.config["CANAILLE"]["ENABLE_REGISTRATION"], "has_account_lockability": app.backend.get().has_account_lockability(),