Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-j2fa-1.0.2.tar.gz (22.1 kB) Copy SHA256 hash SHA256 Source None Apr 25, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page