google.auth.exceptions module

Exceptions used in the google.auth package.

exception GoogleAuthError[source]

Bases: Exception

Base class for all google.auth errors.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception TransportError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate an error occurred during an HTTP request.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception RefreshError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate that an refreshing the credentials’ access token failed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception UserAccessTokenError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate gcloud auth print-access-token command failed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception DefaultCredentialsError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate that acquiring default credentials failed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MutualTLSChannelError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate that mutual TLS channel creation is failed, or mutual TLS channel credentials is missing or invalid.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ClientCertError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate that client certificate is missing or invalid.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception OAuthError[source]

Bases: google.auth.exceptions.GoogleAuthError

Used to indicate an error occurred during an OAuth related HTTP request.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ReauthFailError(message=None)[source]

Bases: google.auth.exceptions.RefreshError

An exception for when reauth failed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ReauthSamlChallengeFailError(message=None)[source]

Bases: google.auth.exceptions.ReauthFailError

An exception for SAML reauth challenge failures.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.