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.9.4

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.9.4.tar.gz (53.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_otp-0.9.4-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-otp-0.9.4.tar.gz
  • Upload date:
  • Size: 53.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for django-otp-0.9.4.tar.gz
Algorithm Hash digest
SHA256 50e54bc09bc435e2ad88f0aa7008718079c3529c422b469b3991a97d28b147bb
MD5 ec0d3f3cf7ba00728027fe2552812166
BLAKE2b-256 beb377213a1e4162350d1a68db90f8c90bc2bb87da2efea085a5ec14e83ee4d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_otp-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for django_otp-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6b92c69021558765e80411479a01788977106d5696c391d2e5342074c1dd74d1
MD5 ee3cfbbf7f4e48ca3936b856d8eb398c
BLAKE2b-256 d48f4944d090610b7700bb9dee5ad092bf74411d5c03cf270b7a0205d8bdb1a6

See more details on using hashes here.

Supported by

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