Expand description
Axum extractors for authenticated callers.
Provides three extractors:
AuthenticatedUser– JWT only (cookie orAuthorization: Bearerheader)ApiKeyAuth– API key only (irfl_...prefix)Authenticated– Dual auth: API key OR JWT
Structs§
- ApiKey
Auth - An authenticated caller via API key.
- ApiKey
Rejection - Rejection type when API key authentication fails.
- Auth
Rejection - Rejection type when JWT authentication fails.
- Authenticated
- An authenticated caller, either via API key or JWT.
- Authenticated
User - An authenticated user extracted from a JWT.
Enums§
- Auth
Method - How the caller was authenticated.
Constants§
- API_
KEY_ PREFIX - API key prefix used to distinguish API keys from JWT tokens.
- API_
KEY_ SUFFIX_ LEN - Number of hex characters kept after
API_KEY_PREFIXto form the stored prefix.