InvalidGrantError

exception gafaelfawr.exceptions.InvalidGrantError

Bases: OAuthError

The provided authorization code is not valid.

This corresponds to the invalid_grant error in RFC 6749: “The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.”

error: ClassVar[str] = 'invalid_grant'

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

hide_error: ClassVar[bool] = True

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

message: ClassVar[str] = 'Invalid authorization code'

The summary message to use when logging this error.