Skip to main content

Module onepassword_access

Module onepassword_access 

Source
Expand description

The 1Password access module: log in to an account and download its vaults.

Exposed only under the test-utils feature, for the out-of-tree CLI that drives it against a real account. Not part of this crate’s supported API, and no stability is promised. Read access to a 1Password account: log in with the master password and Secret Key, then download and decrypt every accessible vault into a native 1Password model.

A port of the OnePassword module in Bitwarden’s C# password-manager-access library. See README.md for the porting notes and open questions.

Modules§

model
What a download yields: vaults holding items, each item still in its decrypted 1Password shape.
wire
serde DTOs for every 1Password endpoint.

Structs§

Client
The 1Password client. Holds the injected HTTP transport so tests can point it at a mock host.
Credentials
The credentials for a password + Secret Key login.
SignInAddress
Where an account signs in, such as my.1password.com.

Enums§

OnePasswordError
Errors returned by the 1Password access library.
SignInDomain
One of the domains 1Password serves accounts on, the set its clients offer in the sign-in form.
TotpResult
The outcome of a two-factor prompt.

Traits§

TwoFactorUi
Callback for interactive two-factor authentication.

Functions§

generate_device_uuid
Generates a 26-character 1Password device id from the lowercase base32 alphabet.