6 releases
0.4.5 | Nov 28, 2024 |
---|---|
0.4.4 | Mar 21, 2024 |
0.4.2 | Nov 18, 2023 |
0.4.0 | Sep 18, 2023 |
0.1.0 | Dec 16, 2020 |
#120 in Authentication
116 downloads per month
47KB
934 lines
cargo-credential-1password
A Cargo credential provider for 1password.
This crate is maintained by the Cargo team as a part of an experiment around 1password integration. We encourage people to try to use this crate in their projects and provide feedback through issues, but do not guarantee long term maintenance.
Usage
cargo-credential-1password
uses the 1password op
CLI to store the token. You
must install the op
CLI from the 1password
website.
Afterward you need to configure cargo
to use cargo-credential-1password
as
the credential provider. You can do this by adding something like the following
to your cargo config file:
[registry]
global-credential-providers = ["cargo-credential-1password --account my.1password.com"]
Finally, run cargo login
to save your registry token in 1password.
CLI Arguments
cargo-credential-1password
supports the following command-line arguments:
--account
: The account name to use. For a list of available accounts, runop account list
.--vault
: The vault name to use. For a list of available vaults, runop vault list
.
Dependencies
~1.5–9MB
~84K SLoC