Skip to main content

Multifactor Authentication for Django Rest Framework

Project description

Build status Code Coverage BSD License Deux can be installed via wheel Supported Python versions. Support Python implementations.

Keywords:authentication, two-factor, multifactor


Multifactor Authentication provides multifactor authentication integration for the Django Rest Framework. It integrates with Token Authentication built into DRF and OAuth2 provided by django-oauth-toolkit.

What is Multifactor Authentication?

Multifactor Authentication (MFA) is a security system that requires more than one method of authentication from independent categories of credentials to verify the user’s identity for a login or other transaction. (Source: SearchSecurity)


You can install deux either via the Python Package Index (PyPI) or from source.


deux version 1.2.0 runs on Python (2.7, 3.4, 3.5).

Installing with pip

To install using pip:

$ pip install -U deux

Downloading and installing from source

Download the latest version of deux from

You can install it by doing the following:

$ tar xvfz deux-0.0.0.tar.gz
$ cd deux-0.0.0
$ python build
# python install

The last command must be executed as a privileged user if you are not currently using a virtualenv.

Using the development version

With pip

You can install it by doing the following:

$ pip install

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for deux, version 1.2.0
Filename, size & hash File type Python version Upload date
deux-1.2.0-py2.py3-none-any.whl (35.2 kB) View hashes Wheel 2.7
deux-1.2.0.tar.gz (646.8 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page