Versions in this module Expand all Collapse all v0 v0.0.2 Feb 20, 2026 v0.0.1 Feb 20, 2026 Changes in this version + var ErrBasicAuthDisabled = errors.New("basic auth is not enabled") + var ErrInvalidCredentials = errors.New("invalid credentials") + var ErrNoCredentialSource = errors.New("no credential source configured") + type Config struct + Enabled bool + Realm string + Users map[string]string + Validator func(ctx context.Context, username, password string) (bool, error) + type Verifier struct + func NewVerifier(cfg Config) (*Verifier, error) + func (v *Verifier) Realm() string + func (v *Verifier) Verify(ctx context.Context, username, password string) error