Module cargo::util::auth

source ·
Expand description

Registry authentication support.

Structs

  • An authorization error from accessing a registry.
  • A wrapper for values that should not be printed.

Enums

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.
  • 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.