-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12714 - arlosi:cred-typos, r=weihanglo
fix: typos in registry authentication documentation r? `@weihanglo`
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Registry Authentication | ||
Cargo authenticates to registries with through credential providers. These | ||
Cargo authenticates to registries with credential providers. These | ||
credential providers are external executables or built-in providers that Cargo | ||
uses to store and retrieve credentials. | ||
|
||
Using alternative registries with authentication *requires* a credential provider to be configured | ||
to avoid unknowningly storing unecrypted credentials on disk. For historical reasons, public | ||
(non-authenticated) registres do not require credential provider configuration and the `cargo:token` | ||
to avoid unknowingly storing unencrypted credentials on disk. For historical reasons, public | ||
(non-authenticated) registries do not require credential provider configuration, and the `cargo:token` | ||
provider is used if no providers are configured. | ||
|
||
Cargo also includes platform-specific providers that use the operating system to securely store | ||
|
@@ -106,6 +106,6 @@ In the config, add to (or create) `registry.global-credential-providers`: | |
global-credential-providers = ["cargo:token", "cargo-credential-1password --email [email protected]"] | ||
``` | ||
|
||
The values in `global-credential-providers` are split on spaces to into path and command-line arguments. To | ||
The values in `global-credential-providers` are split on spaces into path and command-line arguments. To | ||
define a global credential provider where the path or arguments contain spaces, use | ||
the [`[credential-alias]` table](config.md#credential-alias). |