Skip to main content

Module auth

Module auth 

Source

Structs§

AuthFlow
Top-level auth flow descriptor — loaded from --auth-flow <file>.
AuthStep
One HTTP step in the auth flow.
LiveCredential
The resolved, live credential produced by executing the flow.
RefreshTaskHandle
Handle for a spawned auth refresh background task.

Enums§

InjectAs
How the extracted credential is injected into every request.

Functions§

execute_flow
Execute all steps in the auth flow using a plain reqwest client (not the scanner’s HttpClient, to avoid circular dependency). Returns the live credential ready for injection.
load_flow
spawn_refresh_task
Spawn a background task that re-executes the auth flow before the token expires. Writes the new token into cred.value so all in-flight requests automatically pick it up on the next read.