Skip to main content

Module extractor

Module extractor 

Source
Expand description

Axum extractors for authenticated callers.

Provides three extractors:

Structs§

ApiKeyAuth
An authenticated caller via API key.
ApiKeyRejection
Rejection type when API key authentication fails.
AuthRejection
Rejection type when JWT authentication fails.
Authenticated
An authenticated caller, either via API key or JWT.
AuthenticatedUser
An authenticated user extracted from a JWT.

Enums§

AuthMethod
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_PREFIX to form the stored prefix.