OAuthError

exception gafaelfawr.exceptions.OAuthError

Bases: Exception

An OAuth-related error occurred.

This class represents both OpenID Connect errors and OAuth 2.0 errors, including errors when parsing Authorization headers and bearer tokens.

error: ClassVar[str] = 'invalid_request'

The RFC 6749 or RFC 6750 error code for this exception.

hide_error: ClassVar[bool] = False

Whether to hide the details of the error from the client.

message: ClassVar[str] = 'Unknown error'

The summary message to use when logging this error.