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

Add LDAP scope to Grafana Admin
pull/93003/head
linoman 9 months ago committed by GitHub
parent 6b6355e418
commit a0c886922e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/services/accesscontrol/models.go
  2. 8
      pkg/services/accesscontrol/roles.go

@ -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"),
},
},
}

Loading…
Cancel
Save