Skip to main content

Module api

Module api 

Source
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 super API wrapper; the wire DTOs come from bitwarden_api_api::models.

StructsΒ§

AccessConnectorAuthMiddleware πŸ”’
[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.
AccessConnectorClient πŸ”’
Domain-typed wrapper around the generated PAM rotation API clients.
ConnectivityMiddleware πŸ”’
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.
RequestTimedOutError πŸ”’
A request exceeded REQUEST_TIMEOUT.
SessionNotInstalledError πŸ”’
A request needed a bearer before AccessConnectorTokenHandler::set_session ran.
TimeoutMiddleware πŸ”’
Applies REQUEST_TIMEOUT to 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Β§

AccessConnectorClientExt πŸ”’
Extension trait that exposes AccessConnectorClient on [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 Unknown variant, so this guard failure is a bug rather than a server response.