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

Add LDAP scope to Grafana Admin
This commit is contained in:
linoman 2024-09-05 18:15:47 +02:00 committed by GitHub
parent 6b6355e418
commit a0c886922e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -497,6 +497,8 @@ var (
return Scope("settings", "auth."+provider, "*")
}
ScopeSettingsLDAP = Scope("settings", "auth.ldap", "*")
// Annotation scopes
ScopeAnnotationsRoot = "annotations"
ScopeAnnotationsProvider = NewScopeProvider(ScopeAnnotationsRoot)

View File

@ -265,6 +265,14 @@ var (
Action: ActionSettingsWrite,
Scope: ScopeSettingsOAuth("generic_oauth"),
},
{
Action: ActionSettingsRead,
Scope: ScopeSettingsOAuth("ldap"),
},
{
Action: ActionSettingsWrite,
Scope: ScopeSettingsOAuth("ldap"),
},
},
}