Documentation
¶
Overview ¶
Package noop provides a no-op Authorizer that always permits all requests. Useful for testing or services that do not require authorization enforcement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer struct{}
Authorizer is a no-op implementation that always returns allowed=true.
func (*Authorizer) BatchCheck ¶ added in v0.4.0
func (a *Authorizer) BatchCheck(_ context.Context, reqs []authz.CheckRequest) ([]authz.CheckResult, error)
BatchCheck returns all-allowed results matching the input length. Empty input returns (nil, nil), consistent with infra/openfga.Client.BatchCheck.
func (*Authorizer) ListAllowed ¶ added in v0.4.0
ListAllowed returns nil — the noop authorizer has no resource model. Callers needing real listing must use a real backend.
Click to show internal directories.
Click to hide internal directories.