Skip to main content

Complete Two-Factor Authentication for Django

Project description

Jazzband Build Status Test Coverage PyPI

Complete Two-Factor Authentication for Django. Built on top of the one-time password framework django-otp and Django’s built-in authentication framework django.contrib.auth for providing the easiest integration into most Django projects. Inspired by the user experience of Google’s Two-Step Authentication, allowing users to authenticate through call, text messages (SMS), by using a token generator app like Google Authenticator or a YubiKey hardware token generator (optional).

If you run into problems, please file an issue on GitHub, or contribute to the project by forking the repository and sending some pull requests. The package is translated into English, Dutch and other languages. Please contribute your own language using Transifex.

Test drive this app through the example app. It demos most features except the Twilio integration. The example also includes django-user-sessions for providing Django sessions with a foreign key to the user. Although the package is optional, it improves account security control over django.contrib.sessions.

Compatible with supported Django and Python versions. At the moment of writing that includes 4.2, 5.0, and 5.1 on Python 3.8 to 3.12. Documentation is available at readthedocs.io.

Installation

Refer to the installation instructions in the documentation.

Getting help

For general questions regarding this package, please hop over to Stack Overflow. If you think there is an issue with this package; check if the issue is already listed (either open or closed), and file an issue if it’s not.

Contribute

Read the contribution guidelines.

See Also

Have a look at django-user-sessions for Django sessions with a foreign key to the user. This package is also included in the example app.

License

The project is licensed under the MIT license.

Project details


Download files

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

Source Distribution

django_two_factor_auth-1.17.0.tar.gz (170.3 kB view details)

Uploaded Source

Built Distribution

django_two_factor_auth-1.17.0-py3-none-any.whl (298.7 kB view details)

Uploaded Python 3

File details

Details for the file django_two_factor_auth-1.17.0.tar.gz.

File metadata

File hashes

Hashes for django_two_factor_auth-1.17.0.tar.gz
Algorithm Hash digest
SHA256 a2dcc3efedd0ce4b4c14d389766c9fd8e13cabdff5e4e1b645adeb650c550cf7
MD5 518b7bfde4b30cb7d5be99fa359401b0
BLAKE2b-256 dfbe8885500b72e875c1449f08a0d331180e928eaff22a14d312a0a807814958

See more details on using hashes here.

File details

Details for the file django_two_factor_auth-1.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_two_factor_auth-1.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 622e78b0d6cf12eeafa239665d99c1221c399228f2f902fe478aea7759995e0e
MD5 473d4b124b4391deb72555692874bf69
BLAKE2b-256 edbf9e6f2ac10a30b4024f0df5c43959ce1f7e0e065ffc020627ba75d847b3c5

See more details on using hashes here.

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