Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication and signing support types.

Structs§

ChainAuthProvider
Provider that consults an ordered list of providers; the first Some wins, for both transport and signing resolution.
DefaultAuthProvider
Provider that offers nothing, deferring to the backend transport default.
EnvTokenAuthProvider
Provider that reads a token from the first present, non-empty environment variable in an ordered list and exposes it as token-as-password auth.
SecretString
A string wrapper that prevents accidental secret exposure in logs or config dumps.
StaticAuthProvider
Provider that always returns a fixed TransportAuth.

Enums§

SigningConfig
Supported commit signing configurations.
TransportAuth
Supported repository transport authentication strategies.

Constants§

DEFAULT_TOKEN_USERNAME
Default username used for token-as-password HTTP basic auth when the caller does not override it. This is a generic transport convention for carrying a token in the username field, not a forge identifier; callers override it per remote via TransportAuth::Token.

Traits§

AuthProvider
Supplies transport and signing configuration for git backends.