From c8152d9fadf7f6c0be5c9fe30c7911e2a793fca9 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sun, 8 Jan 2023 21:23:47 +0100 Subject: [PATCH] fix: user configured OIDC_CLIENT_SECRETS file --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 2e23314..90fa88c 100755 --- a/server.py +++ b/server.py @@ -14,7 +14,7 @@ app = flask.Flask("Picture factory app", static_folder=None) if os.path.isfile("oidc.json"): with open("oidc.json") as f: app.config |= json.load(f) - if not os.path.isfile("client_secrets.json"): + if not os.path.isfile(app.config["OIDC_CLIENT_SECRETS"]): raise ValueError("client_secrets.json file is missing in project root") else: raise ValueError("OIDC required by environment but not oidc.json file found")