MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithResourceACLs

Function WithResourceACLs

net/auth/options.go:74–100  ·  view source on GitHub ↗

WithResourceACLs enables to define specific URL paths to be black- and/or white listed. Matching for black- and white lists checks if the URL path has the provided string of a list as a prefix. auth.WithResources(nil,nil) // blocks everything auth.WithResources([]string{"/"}, []string{}) // bloc

(blockList, allowList []string, scopeIDs ...scope.TypeID)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

matchPathFunction · 0.85
findScopedConfigMethod · 0.45
sortMethod · 0.45
updateScopedConfigMethod · 0.45

Tested by

no test coverage detected