Module cargo::util::auth

source ·
Expand description

Registry authentication support.

Structs

An authorization error from accessing a registry.
Footer 🔒
The footer of an asymmetric token as describe in RFC 3231.
Message 🔒
The main body of an asymmetric token as describe in RFC 3231.
A wrapper for values that should not be printed.

Enums

Action 🔒
A record of what kind of operation is happening that we should generate a token for.

Functions

Returns the token to use for the given registry. If a login_url is provided and a token is not available, the login_url will be included in the returned error.
Returns the token to use for the given registry.
Saves the given token.
Removes the token for the given registry.
Checks that a secret key is valid, and returns the associated public key in Paserk format.
Get the credential configuration for a SourceId.
Gets the path to the libexec processes in the sysroot.