Module auth

Source
Expand description

Registry authentication support.

Structsยง

AuthorizationError
An authorization error from accessing a registry.
RegistryConfig
[registries.NAME] tables.
RegistryConfigExtended
The [registry] table, which more keys than the [registries.NAME] tables.

Enumsยง

AuthorizationErrorReason

Staticsยง

BUILT_IN_PROVIDERS ๐Ÿ”’
List of credential providers built-in to Cargo. Keep in sync with the match in credential_action.

Functionsยง

auth_token
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.
auth_token_optional ๐Ÿ”’
Returns the token to use for the given registry.
cache_token_from_commandline
Store a token in the cache for future calls.
credential_action ๐Ÿ”’
credential_provider ๐Ÿ”’
Get the list of credential providers for a registry source.
login
Log in to the given registry.
logout
Log out from the given registry.
registry_credential_config_raw
Get the credential configuration for a SourceId.
registry_credential_config_raw_uncached ๐Ÿ”’
resolve_credential_alias ๐Ÿ”’
Use the [credential-alias] table to see if the provider name has been aliased.