Skip to content
Snippets Groups Projects
Verified Commit c53285d4 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Allow apps to define OAuth2 scopes

parent 8b8e1583
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,7 @@ OAUTH2_PROVIDER = {
"write": "Write anything the resource owner can write",
}
}
merge_app_settings("OAUTH2_SCOPES", OAUTH2_PROVIDER["SCOPES"], True)
if _settings.get("oauth2.oidc.enabled", False):
with open(_settings.get("oauth2.oidc.rsa_key", "/etc/aleksis/oidc.pem"), "r") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment