MCPcopy Index your code
hub / github.com/coder/coder / Scope

Struct Scope

coderd/rbac/scopes.go:213–216  ·  view source on GitHub ↗

Scope acts the exact same as a Role with the addition that is can also apply an AllowIDList. Any resource being checked against a Scope will reject any resource that is not in the AllowIDList. To not use an AllowIDList to reject authorization, use a wildcard for the AllowIDList. Eg: 'AllowIDList: []

Source from the content-addressed store, hash-verified

211// To not use an AllowIDList to reject authorization, use a wildcard for the
212// AllowIDList. Eg: 'AllowIDList: []string{WildcardSymbol}'
213type Scope struct {
214 Role
215 AllowIDList []AllowListElement `json:"allow_list"`
216}
217
218type AllowListElement struct {
219 // ID must be a string to allow for the wildcard symbol.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected