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§
- Auth
Header - Single HTTP
(name, value)header pair, returned byAuthProvider::auth_header(bd:JMAP-6r7c.62, bd:JMAP-6r7c.20). - Basic
Auth - HTTP Basic authentication (
Authorization: Basic <base64(username:password)>). - Bearer
Auth - Bearer-token authentication (
Authorization: Bearer <token>). - Builder
Transport - Concrete
TransportConfigproduced byCustomTransportBuilder::build. - Custom
CaTransport - Custom CA trust root (DER-encoded). No
Authorizationheader is injected. - Custom
Transport Builder - Builder for a
TransportConfigwith multi-root trust chains and optional mTLS client certificate (bd:JMAP-6r7c.65). - Default
Transport - Standard reqwest client with a 10-second connect timeout; no custom TLS.
- Http
Client - Opaque HTTP client returned by
TransportConfig::build_client(bd:JMAP-6r7c.36). - None
Auth - No authentication: no
Authorizationheader.
Traits§
- Auth
Provider - Injects per-request authentication credentials.
- Transport
Config - Controls how the underlying
HttpClientis constructed.