Skip to main content

Module auth

Module auth 

Source
Expand description

Auth traits and credential implementations for JMAP clients.

Provides TransportConfig (TLS/HTTP client construction) and AuthProvider (per-request credential injection), plus built-in implementations: DefaultTransport, CustomCaTransport, NoneAuth, BearerAuth, and BasicAuth.

Structs§

BasicAuth
HTTP Basic authentication (Authorization: Basic <base64(username:password)>).
BearerAuth
Bearer-token authentication (Authorization: Bearer <token>).
CustomCaTransport
Custom CA trust root (DER-encoded). No Authorization header is injected.
DefaultTransport
Standard reqwest client with a 10-second connect timeout; no custom TLS.
NoneAuth
No authentication: no Authorization header.

Traits§

AuthProvider
Injects per-request authentication credentials.
TransportConfig
Controls how the underlying reqwest::Client is constructed.