deux.authtoken.views

class deux.authtoken.views.ObtainMFAAuthToken[source]

View for authenticating which extends the ObtainAuthToken from Django Rest Framework’s Token Authentication.

post(self, request)[source]

Override ObtainAuthToken’s post method for multifactor authentication.

(1) When MFA is required, send the user a response indicating which challenge is required. (2) When authentication is successful return the auth token.

Parameters:request – Request object from the client.
serializer_class

alias of MFAAuthTokenSerializer