This repository is deprecated by Duo Security. The repository will remain public and visible, and integrations built using this repository’s code will continue to work. You can also continue to fork, clone, or pull from this repository.
However, Duo will not provide any further releases or enhancements.
Duo recommends migrating your application to the Duo Universal Prompt. Refer to our documentation for more information on how to update.
For frequently asked questions about the impact of this deprecation, please see the Repository Deprecation FAQ
duo_python - Duo two-factor authentication for Python web applications: https://duo.com/docs/duoweb-v2
Duo has released a new Python client that will let you integrate the Duo Universal Prompt into your web applications. Check out https://duo.com/docs/duoweb for more info on the Universal Prompt and duo_universal_python for the new client.
This package allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any web login form - without setting up secondary user accounts, directory synchronization, servers, or hardware.
Files located in the js
directory should be hosted by your webserver for inclusion in web pages.
Using pip
:
pip install duo_web
.
Included are examples for integrating duo_web
into Google App Engine, Django, and the standard library HTTPSimpleServer
. See each demo directory for instructions on setup and running.
Development:
$ git clone https://github.com/duosecurity/duo_python.git
$ cd duo_python
$ pip install --requirement requirements-dev.txt
$ nose2
$ flake8
Report any bugs, feature requests, etc. to us directly: [email protected]