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

Struct FakeAuthorizer

coderd/coderdtest/authorize.go:369–372  ·  view source on GitHub ↗

FakeAuthorizer is an Authorizer that will return an error based on the "ConditionalReturn" function. By default, **no error** is returned. Meaning 'FakeAuthorizer' by default will never return "unauthorized".

Source from the content-addressed store, hash-verified

367// "ConditionalReturn" function. By default, **no error** is returned.
368// Meaning 'FakeAuthorizer' by default will never return "unauthorized".
369type FakeAuthorizer struct {
370 ConditionalReturn func(context.Context, rbac.Subject, policy.Action, rbac.Object) error
371 sqlFilter string
372}
373
374var _ rbac.Authorizer = (*FakeAuthorizer)(nil)
375

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected