mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
RBAC: Add OAuth provider scopes separately to fixed:authentication.config:writer (#78202)
Add OAuth provider setting scopes to fixed:authentication writer * Change SSO Settings api scopes * Remove unused RBAC Action
This commit is contained in:
@@ -396,7 +396,6 @@ const (
|
||||
|
||||
// Settings scope
|
||||
ScopeSettingsAll = "settings:*"
|
||||
ScopeSettingsAuth = "settings:auth:*"
|
||||
ScopeSettingsSAML = "settings:auth.saml:*"
|
||||
|
||||
// Team related actions
|
||||
@@ -467,6 +466,10 @@ var (
|
||||
// Team scope
|
||||
ScopeTeamsID = Scope("teams", "id", Parameter(":teamId"))
|
||||
|
||||
ScopeSettingsOAuth = func(provider string) string {
|
||||
return Scope("settings", "auth."+provider, "*")
|
||||
}
|
||||
|
||||
// Annotation scopes
|
||||
ScopeAnnotationsRoot = "annotations"
|
||||
ScopeAnnotationsProvider = NewScopeProvider(ScopeAnnotationsRoot)
|
||||
|
||||
Reference in New Issue
Block a user