Skip to content
Snippets Groups Projects
Verified Commit 811fd29d authored by Nik | Klampfradler's avatar Nik | Klampfradler Committed by Jonathan Weth
Browse files

Allow apps to dynamically generate OAuth scopes

This replaces the settings merging for the static
`OAUTH2_PROVIDER["SCOPES"]` setting.

Attention: Breaking change, only release with next major version. Can
be backported to minor release if support for old mechanism is glued
into the new one, with a deprecation warning.

(cherry picked from commit 1aabacae)
parent dbaea722
No related branches found
No related tags found
1 merge request!733Prepare release 2.0rc6
......@@ -138,12 +138,8 @@ class CoreConfig(AppConfig):
# Save the associated person to pick up defaults
user.person.save()
<<<<<<< HEAD
@classmethod
def get_all_scopes(cls) -> dict[str, str]:
=======
def get_all_scopes(self) -> dict[str, str]:
>>>>>>> 1aabacae (Allow apps to dynamically generate OAuth scopes)
scopes = {
"read": "Read anything the resource owner can read",
"write": "Write anything the resource owner can write",
......
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