diff options
author | Frederick Muriuki Muriithi | 2024-10-09 16:23:16 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-09 16:38:22 -0500 |
commit | bdf85093f8b64d4137eb075e5b6e28d16f9dd32f (patch) | |
tree | fd7135129946559fc80fed8779ccab94a4540ac2 /gn_auth/settings.py | |
parent | 57fe4bb06f6971cac828edc20f580956e88408a0 (diff) | |
download | gn-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/settings.py')
-rw-r--r-- | gn_auth/settings.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gn_auth/settings.py b/gn_auth/settings.py index 2a78be3..d561fa9 100644 --- a/gn_auth/settings.py +++ b/gn_auth/settings.py @@ -21,9 +21,11 @@ REDIS_URI = "redis://localhost:6379/0" REDIS_JOB_QUEUE = "GN_AUTH::job-queue" # OAuth2 settings -OAUTH2_SCOPE = ( - "profile", "group", "role", "resource", "user", "masquerade", - "introspect") +OAUTH2_SCOPES_SUPPORTED = ( + # Used by Authlib's `authlib.integrations.flask_oauth2.AuthorizationServer` + # class to setup the supported scopes. + "profile", "group", "role", "resource", "register-client", "user", + "masquerade", "introspect", "migrate-data") CORS_ORIGINS = "*" CORS_HEADERS = [ |