noop

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 3 Imported by: 0

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

func (a *Authenticator) Authenticate(_ context.Context) (actor.Actor, error)

Authenticate always returns an anonymous actor with no error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL