django-two-factor-auth 0.4.0

Full Two-Factor Authentication for Django
Being built on top of the django.contrib.auth app, django-two-factor-auth is a Django application that provides a complete two-factor authentication implementation in Django.

Installation

Install it with pip:

 pip install django-two-factor-auth

Add 'two_factor' to the INSTALLED_APPS

INSTALLED_APPS = (
 ...
 'two_factor',
)


Configure the authentication backends like this:

AUTHENTICATION_BACKENDS = (
 'django.contrib.auth.backends.ModelBackend',
 'two_factor.auth_backends.TokenBackend',
 'two_factor.auth_backends.VerifiedComputerBackend',
)


Configure the login URL like this:

from django.core.urlresolvers import reverse_lazy
LOGIN_URL = reverse_lazy('tf:login')


Add the URL routes like this:

urlpatterns = patterns('',
 ...
 url(r'^tf/', include('two_factor.urls', 'tf')),
)


Make sure you've removed any of the other login routes, in order to not make the two-factor authentication circumvented.The Django admin interface will be automatically patched in order to use the new login method.

last updated on:
September 14th, 2012, 21:11 GMT
price:
FREE!
developed by:
Bouke Haarsma
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT