Auth: Add LDAP scope to Grafana Admin (#92990)
Add LDAP scope to Grafana Admin
This commit is contained in:
@@ -497,6 +497,8 @@ var (
|
||||
return Scope("settings", "auth."+provider, "*")
|
||||
}
|
||||
|
||||
ScopeSettingsLDAP = Scope("settings", "auth.ldap", "*")
|
||||
|
||||
// Annotation scopes
|
||||
ScopeAnnotationsRoot = "annotations"
|
||||
ScopeAnnotationsProvider = NewScopeProvider(ScopeAnnotationsRoot)
|
||||
|
||||
@@ -265,6 +265,14 @@ var (
|
||||
Action: ActionSettingsWrite,
|
||||
Scope: ScopeSettingsOAuth("generic_oauth"),
|
||||
},
|
||||
{
|
||||
Action: ActionSettingsRead,
|
||||
Scope: ScopeSettingsOAuth("ldap"),
|
||||
},
|
||||
{
|
||||
Action: ActionSettingsWrite,
|
||||
Scope: ScopeSettingsOAuth("ldap"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user