Skip to main content

2-Factor Authentication for Django projects

Project description

django-j2fa

2-factor SMS authentication for Django projects.

Install

  1. Add ‘j2fa’ to project settings INSTALLED_APPS

  2. Add j2fa.middleware.Ensure2FactorAuthenticatedMiddleware to project settings MIDDLEWARE (after session middleware)

  3. Make sure user.profile.phone resolves to phone number and user.profile.require_2fa resolves to True/False

  4. Set project settings SMS_TOKEN and SMS_SENDER_NAME

  5. Add TwoFactorAuth.as_view() to urls with name=’j2fa-obtain-auth’

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-j2fa-2.2.1.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file django-j2fa-2.2.1.tar.gz.

File metadata

  • Download URL: django-j2fa-2.2.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for django-j2fa-2.2.1.tar.gz
Algorithm Hash digest
SHA256 299380fdac76555abc638e232732ee3f95bb54ffb68a06624b4f3a39e2bc9408
MD5 698322759b2ecf4d532716a0b3478f77
BLAKE2b-256 8af3f53f754437b5a9816cbd9732616f8908ca0645805b3487439d6fa42e4c32

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