thunderbird_accounts.authentication.exceptions
Exceptions
Used in AccountsOIDCBackend to indicate we need to show a service unavailable page. |
|
|
|
|
|
|
|
|
|
|
Generic error |
|
Raised when the keycloak-mfa-rest provider rejects a credential operation with a client error (e.g. an invalid TOTP code, or an authenticator that is already configured). |
|
Raised when the keycloak-mfa-rest provider rejects a request with a plain 401 (no |
|
Raised when the keycloak-mfa-rest provider rejects a sensitive mutation with 401 |
|
|
|
|
|
- exception thunderbird_accounts.authentication.exceptions.KeycloakError(details, *args, **kwargs)[source]
Bases:
RuntimeErrorGeneric error
- exception thunderbird_accounts.authentication.exceptions.InvalidDomainError(username, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.ImportUserError(error, username: str | None = None, error_code: str | None = None, error_desc: str | None = None, status_code: int | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.UpdateUserError(error, username: str | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.UpdateUserPlanInfoError(error, oidc_id: str | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.GetUserError(error, oidc_id: str | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.DeleteUserError(error, oidc_id: str | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.SendExecuteActionsEmailError(error, action: str | None = None, oidc_id: str | None = None, *args, **kwargs)[source]
Bases:
KeycloakError
- exception thunderbird_accounts.authentication.exceptions.MfaCredentialError(error_code, *args, **kwargs)[source]
Bases:
KeycloakErrorRaised when the keycloak-mfa-rest provider rejects a credential operation with a client error (e.g. an invalid TOTP code, or an authenticator that is already configured). Carries the machine error code returned by the provider so callers can map it to a user-facing message.
- exception thunderbird_accounts.authentication.exceptions.MfaStepUpRequiredError(*args, **kwargs)[source]
Bases:
KeycloakErrorRaised when the keycloak-mfa-rest provider rejects a sensitive mutation with 401
step_up_required: the forwarded user token does not prove a recent second-factor authentication. Callers should respond with the MFA reauthentication (step-up) redirect so the user can re-verify.
- exception thunderbird_accounts.authentication.exceptions.MfaSessionExpiredError(*args, **kwargs)[source]
Bases:
KeycloakErrorRaised when the keycloak-mfa-rest provider rejects a request with a plain 401 (no
step_up_requiredmarker): the forwarded user OIDC access token is missing, invalid, or expired. This is distinct from a step-up demand — the access token’s short lifetime can lapse while a user lingers in the setup flow. Callers should ask the user to sign in again rather than surfacing a generic upstream failure.
Bases:
RuntimeErrorUsed in AccountsOIDCBackend to indicate we need to show a service unavailable page.