by robinhood

robinhood / deux

Multifactor Authentication for Django Rest Framework

133 Stars 40 Forks Last release: Not found Other 39 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

.. image:: :align: center :width: 721 :height: 250

|build-status| |codecov| |license| |wheel| |pyversion| |pyimp|

:Version: 1.2.0 :Web: :Download: :Source: :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_)

.. _django-oauth-toolkit: .. _SearchSecurity:

.. _installation:


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


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

Installing with pip

To install using

: ::
$ pip install -U deux

.. _installing-from-source:

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.

.. _installing-from-git:

Using the development version

With pip ~~~~~~~~

You can install it by doing the following: ::

$ pip install

.. |build-status| image:: :alt: Build status :target:

.. |license| image:: :alt: BSD License :target:

.. |wheel| image:: :alt: Deux can be installed via wheel :target:

.. |pyversion| image:: :alt: Supported Python versions. :target:

.. |pyimp| image:: :alt: Support Python implementations. :target:

.. |codecov| image:: :alt: Code Coverage :target:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.