Auth: Add LDAP scope to Grafana Admin (#92990)

Add LDAP scope to Grafana Admin
This commit is contained in:
linoman
2024-09-05 17:15:47 +01:00
committed by GitHub
parent 6b6355e418
commit a0c886922e
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -497,6 +497,8 @@ var (
return Scope("settings", "auth."+provider, "*")
}
ScopeSettingsLDAP = Scope("settings", "auth.ldap", "*")
// Annotation scopes
ScopeAnnotationsRoot = "annotations"
ScopeAnnotationsProvider = NewScopeProvider(ScopeAnnotationsRoot)
+8
View File
@@ -265,6 +265,14 @@ var (
Action: ActionSettingsWrite,
Scope: ScopeSettingsOAuth("generic_oauth"),
},
{
Action: ActionSettingsRead,
Scope: ScopeSettingsOAuth("ldap"),
},
{
Action: ActionSettingsWrite,
Scope: ScopeSettingsOAuth("ldap"),
},
},
}