Versions in this module Expand all Collapse all v0 v0.6.0 Dec 20, 2022 Changes in this version + var ErrExists = errors.New("user already exists") + var ErrUnauthorized = errors.New("unauthorized") + type Authenticator interface + Identity func(int64) (string, bool) + Valid func(username, password string) (uid int64, identity string, ok bool) + type Authenticators struct + func NewAuthenticators(s *web.Server, d time.Duration, jobTitle string) *Authenticators + func (a *Authenticators) All(p *message.Printer) map[string]string + func (a *Authenticators) GC(now time.Time) error + func (a *Authenticators) Identities(uid int64) map[string]string + func (a *Authenticators) IdentityExpired(id, identity string) bool + func (a *Authenticators) Register(id string, auth Authenticator, name web.LocaleStringer) + func (a *Authenticators) Valid(id, identity, password string) (int64, string, bool)