Documentation
¶
Overview ¶
Package noop provides a no-op Authenticator that always returns an anonymous actor. Useful for testing or endpoints that do not require authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() authn.Authenticator
New returns a NoopAuthenticator that always produces an anonymous actor.
Types ¶
type Authenticator ¶
type Authenticator struct{}
Authenticator is a no-op implementation that always returns an anonymous actor.
func (*Authenticator) Authenticate ¶
Authenticate always returns an anonymous actor with no error.
func (*Authenticator) Method ¶ added in v0.4.4
func (a *Authenticator) Method() string
Method returns the engine identifier "noop". Used by authn.Server middleware to populate auditpb.AuthnDetail.Method without hard-coding a scheme.
Click to show internal directories.
Click to hide internal directories.