deux.oauth2.exceptions

exception deux.oauth2.exceptions.ChallengeRequiredMessage(challenge_type)[source]

This exception is used to prompt the user for an MFA code.

This exception is used when a user passes in their username and password, and they have MFA enabled.

status_code = 200

This exception returns a 200 response.

twotuples

Returns a list of tuples that will be converted to the error response. This method override the two_tuples method from OAuth2Error.

exception deux.oauth2.exceptions.InvalidLoginError(message)[source]

Generic exception for a failed login attempt through OAuth2. This exception will result in a 400 Bad Request error in the OAuth API.

twotuples

Returns a list of tuples that will be converted to the error response. This method override the two_tuples method from OAuth2Error.