Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2026 Changes in this version + var Epoch = time.Unix(0, 0).UTC() + func Principal(testing TestingT, spec authentication.PrincipalSpec) authentication.Principal + func RequireFailure(testing TestingT, err error, kind authentication.FailureKind) + func RequirePrincipal(testing TestingT, ctx context.Context, subject string) + func Result(testing TestingT, spec authentication.PrincipalSpec) authentication.Result + type Authenticator struct + func NewAuthenticator(outcomes ...Outcome) *Authenticator + func (a *Authenticator) Authenticate(ctx context.Context, credential authentication.Credential) (authentication.Result, error) + func (a *Authenticator) Calls() []Call + type Call struct + Kind authentication.CredentialKind + func (c Call) String() string + type Clock struct + func NewClock(instant time.Time) *Clock + func (c *Clock) Advance(duration time.Duration) time.Time + func (c *Clock) Now() time.Time + type HTTPFixture struct + Recorder *httptest.ResponseRecorder + Request *http.Request + func NewHTTPFixture(method, target string, body io.Reader) HTTPFixture + type Outcome struct + Err error + Result authentication.Result + type TestingT interface + Fatalf func(string, ...any) + Helper func()