Skip to main content

Module runtime

Module runtime 

Source
Expand description

Axum-independent runtime: config snapshot, credential store, selection, credential preparation and attempt outcomes.

Every attempt is a Lease: an owned guard that reports exactly one Outcome, either explicitly or as Cancelled when dropped (client gone mid-execute, stream dropped). Streams wrap their lease in Completing.

Structs§

AttemptStats
Commit
How CredentialStore::commit_file_backed commits a management save.
Completing
A response stream that reports its lease’s outcome on end, on the first error (after which it yields nothing more), or as Cancelled when dropped early.
CredentialActivity
Per-credential outcome counters for management views (Go Auth.Success/Failed and its 20 x 10-minute recent-request ring). Additive read API.
CredentialStore
Lease
One attempt with one credential. Not cloneable: it reports exactly one outcome.
OAuthCallback
An OAuth provider redirect received on the main listener.
Provenance
What a file credential’s metadata was built from at one revision. Go holds a loaded file’s numbers as float64 read from its text, and a saved record’s numbers as that save held them; a management save reproduces them only from this, never from the file as it is now, which may have changed since without a reload.
Runtime
Selection
Route-model state is separate from the lease’s resolved execution model.

Enums§

AcquireError
OAuthDelivery
What became of a provider callback.
Outcome
PatchError

Constants§

RECENT_BUCKET_SECONDS

Functions§

admission
Registry admission (Go authSupportsRouteModel) plus a registered executor, built-in or plugin.
standalone_admission
Admission without a registry: provider match, prefix, config aliases and the credential’s exclusions (attributes first, then file metadata).

Type Aliases§

Admit
Decides which credentials may serve a selection and under which model key their cooldowns live. None rejects the credential.
OAuthCallbackSink
Hands a callback to a pending management login (Go WriteOAuthCallbackFileForPendingSession).