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§

AuthHeader
Single HTTP (name, value) header pair, returned by AuthProvider::auth_header (bd:JMAP-6r7c.62, bd:JMAP-6r7c.20).
BasicAuth
HTTP Basic authentication (Authorization: Basic <base64(username:password)>).
BearerAuth
Bearer-token authentication (Authorization: Bearer <token>).
BuilderTransport
Concrete TransportConfig produced by CustomTransportBuilder::build.
CustomCaTransport
Custom CA trust root (DER-encoded). No Authorization header is injected.
CustomTransportBuilder
Builder for a TransportConfig with multi-root trust chains and optional mTLS client certificate (bd:JMAP-6r7c.65).
DefaultTransport
Standard reqwest client with a 10-second connect timeout; no custom TLS.
HttpClient
Opaque HTTP client returned by TransportConfig::build_client (bd:JMAP-6r7c.36).
NoneAuth
No authentication: no Authorization header.

Traits§

AuthProvider
Injects per-request authentication credentials.
TransportConfig
Controls how the underlying HttpClient is constructed.