A pluggable framework for adding two-factor authentication to Django using one-time passwords.
Project description
This project makes it easy to add support for one-time passwords (OTPs) to Django. It can be integrated at various levels, depending on how much customization is required. It integrates with django.contrib.auth, although it is not a Django authentication backend. The primary target is developers wishing to incorporate OTPs into their Django projects as a form of two-factor authentication.
Several simple OTP plugins are included and more are available separately. This package also includes an implementation of OATH HOTP and TOTP for convenience, as these are standard OTP algorithms used by multiple plugins.
If you’re looking for a higher-level or more opinionated solution, you might be interested in django-two-factor-auth.
Status
This project is stable and maintained, but is no longer actively used by the author. Well-formed pull requests are welcome. Anyone interested in taking over aspects of the project should contact me.
Development
Development dependencies are defined in the Pipfile; use pipenv to set up a suitable shell.
The tests in tox.ini cover a representative sample of supported Python and Django versions, as well as running flake8 and isort for linting and style consistency. Please run tox before checking in and sending a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_otp-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523a87f8d0c52ce9a9f0a5e248c59dab3e85cdda5bbcd106cf49138a8f3f3209 |
|
MD5 | 5ce5c9aad668339284b7f7f8fce48045 |
|
BLAKE2b-256 | 0e23c71b7ca37157692c49f2872538fb7091c68dd96f07bf6880295eed4c8781 |