From a1c336d3eee95a75b2559c23e043c5912aa116d6 Mon Sep 17 00:00:00 2001 From: Teemu Kataja Date: Fri, 14 Jun 2024 13:03:54 +0300 Subject: [PATCH] fix resource config not being loaded --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index eb02a95..19d5ea1 100644 --- a/main.py +++ b/main.py @@ -24,6 +24,7 @@ "URL_CALLBACK", "URL_REDIRECT", "SCOPE", + "RESOURCE", "COOKIE_DOMAIN", "CORS_DOMAINS", "DEBUG", @@ -133,7 +134,7 @@ async def login_endpoint(): "scope": CONFIG["SCOPE"], } # optional param for special cases - if "resource" in CONFIG: + if "RESOURCE" in CONFIG: params["resource"] = CONFIG["RESOURCE"] # prepare the redirection response