Expand description
HTTP API client wrappers for the Bitwarden serverβs PAM rotation endpoints.
build_sdk_client assembles the client the connector runs on; AccessConnectorClient
reaches through its configurations, mapping calls into domain types.
ModulesΒ§
- models π
- Domain types produced by the
superAPI wrapper; the wire DTOs come frombitwarden_api_api::models.
StructsΒ§
- Access
Connector πAuth Middleware - [
reqwest_middleware::Middleware] that attaches the connector bearer token and retries one 401 after a forced refresh. Unlike bitwarden-authβs middleware, it fails on session loss instead of sending the request without a token. - Access
Connector πClient - Domain-typed wrapper around the generated PAM rotation API clients.
- Connectivity
Middleware π - Records the last successful server contact, so target-side steps can pause while the server is unreachable. Any 2xx counts, even if the body later fails to parse.
- Request
Timed πOutError - A request exceeded
REQUEST_TIMEOUT. - Session
NotInstalled πError - A request needed a bearer before
AccessConnectorTokenHandler::set_sessionran. - Timeout
Middleware π - Applies
REQUEST_TIMEOUTto a whole request; core sets none.
EnumsΒ§
- Route π
- Route class, for disambiguating 404 semantics.
ConstantsΒ§
- REQUEST_
TIMEOUT π - Bounds each request so a black-holed connection cannot stall the connector.
TraitsΒ§
- Access
Connector πClient Ext - Extension trait that exposes
AccessConnectorClienton [Client].
FunctionsΒ§
- attach_
bearer_ πheader - build_
sdk_ πclient - Builds the SDK client the connector runs against, plus the handler that carries its session.
- classify_
error π - parse_
cipher π - Parse the cipher response into a vault [
Cipher]. A conversion failure is a protocol error that never includes the payload. - safe_
middleware_ πdescription - Names only the variant of a [
reqwest_middleware::Error]; its message can wrap arbitrary strings. - unrecognized_
variant π - The connector never constructs an
Unknownvariant, so this guard failure is a bug rather than a server response.