aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/__init__.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-09 16:23:16 -0500
committerFrederick Muriuki Muriithi2024-10-09 16:38:22 -0500
commitbdf85093f8b64d4137eb075e5b6e28d16f9dd32f (patch)
treefd7135129946559fc80fed8779ccab94a4540ac2 /gn_auth/__init__.py
parent57fe4bb06f6971cac828edc20f580956e88408a0 (diff)
downloadgn-auth-bdf85093f8b64d4137eb075e5b6e28d16f9dd32f.tar.gz
Update Configs: Change `OAUTH2_SCOPE` => `OAUTH2_SCOPES_SUPPORTED`
Use the OAUTH2_SCOPES_SUPPORTED application configuration variable, that is used by the flask integration for the Authlib library to set up the supported scopes.
Diffstat (limited to 'gn_auth/__init__.py')
-rw-r--r--gn_auth/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py
index 6e2a884..b695ebf 100644
--- a/gn_auth/__init__.py
+++ b/gn_auth/__init__.py
@@ -25,7 +25,7 @@ def check_mandatory_settings(app: Flask) -> None:
undefined = tuple(
setting for setting in (
"SECRET_KEY", "SQL_URI", "AUTH_DB", "AUTH_MIGRATIONS",
- "OAUTH2_SCOPE")
+ "OAUTH2_SCOPES_SUPPORTED")
if not ((setting in app.config) and bool(app.config[setting])))
if len(undefined) > 0:
raise ConfigurationError(