Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 v1.0.0 Jul 6, 2026 Changes in this version + type Authenticator struct + func NewAuthenticator(store *Store, plat database.TxManager) *Authenticator + func (a *Authenticator) Authenticate(r *http.Request) (authz.Actor, error) + type KeyInfo struct + ExpiresAt *time.Time + ID uuid.UUID + LastUsed *time.Time + Name string + Prefix string + RevokedAt *time.Time + Scopes []string + type Principal struct + KeyID uuid.UUID + Name string + Scopes []string + TenantID uuid.UUID + type Store struct + func NewStore(idgen model.IDGen, opts ...StoreOption) *Store + func (s *Store) Issue(ctx context.Context, db database.TenantDB, name string, scopes []string, ...) (token string, id uuid.UUID, err error) + func (s *Store) List(ctx context.Context, db database.TenantDB) ([]KeyInfo, error) + func (s *Store) Revoke(ctx context.Context, db database.TenantDB, id uuid.UUID) error + func (s *Store) Rotate(ctx context.Context, db database.TenantDB, oldID uuid.UUID) (token string, newID uuid.UUID, err error) + func (s *Store) Verify(ctx context.Context, plat database.TxManager, token string) (Principal, error) + type StoreOption func(*Store) + func WithAudit(w *kaudit.Writer) StoreOption