Skip to main content

A pluggable framework for adding two-factor authentication to Django using one-time passwords.

Project description

PyPI Documentation Source

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

This version

0.8.0

Download files

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

Source Distribution

django-otp-0.8.0.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

django_otp-0.8.0-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file django-otp-0.8.0.tar.gz.

File metadata

  • Download URL: django-otp-0.8.0.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.6

File hashes

Hashes for django-otp-0.8.0.tar.gz
Algorithm Hash digest
SHA256 aea9dd6e46a7ab4850e7d7b08c9330e67c126f6b2fd47b88a2de1b182d8ce302
MD5 b76ca714a4788607be266daaba5391c1
BLAKE2b-256 55330075a11c1369f78b97bb7ec15849b2fecbb6b1938345b79d412f5093c611

See more details on using hashes here.

Provenance

File details

Details for the file django_otp-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: django_otp-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.6

File hashes

Hashes for django_otp-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb9054e83263d8b2e379f3d2d1f08a208baa24c75153f44812dec0c2122dd22
MD5 6f73460b7dcaca554e0f16b2d92eefcc
BLAKE2b-256 2186ad06e792df7c7de3274f9f086b7c7fb1b1d534ec5e10ae8063dfb40cfd15

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page