A Django deployment package for all hosting types.
Project description
Django-mfa(Multi-factor Authentication) is a simple django package to add extra layer of security to your web application. Django-mfa is providing easiest integration to enable Multi factor authentication to your django applications. Inspired by the user experience of Google’s Authentication, django-mfa allows users to authenticate through text message(SMS) or by using token generator app like google authenticator.
We welcome your feedback on this package. If you run into problems, please raise an issue or contribute to the project by forking the repository and sending some pull requests.
This Package is compatible with Django versions >=1.10 (including at least Django 2.0.7) Documentation is available at readthedocs(http://django-mfa.readthedocs.io/en/latest/)
Quick start
Installation
The Git repository can be cloned with this command:
git clone https://github.com/MicroPyramid/django-mfa
The django_mfa package, included in the distribution, should be placed on the PYTHONPATH.
Otherwise you can just easy_install -Z django-mfa or pip install django-mfa.
Settings
Add app name in settings.py:
INSTALLED_APPS = [ '..................', 'django_mfa', '..................' ]
Add ‘django_mfa.middleware.MfaMiddleware’ to your project middlewares:
MIDDLEWARE = [ '....................................', 'django_mfa.middleware.MfaMiddleware', '....................................', ]
Optional issuer name. This name will be shown in the Authenticator App along with the username
MFA_ISSUER_NAME = “Cool Django App”
Optionally enable remember-my-browser. If enabled, the browser will be trusted for specified number of days after the user enters the code once:
MFA_REMEMBER_MY_BROWSER = True MFA_REMEMBER_DAYS = 90
Urls
Add the following to your root urls.py file.
urlpatterns = [
...
url(r'^settings/', include('django_mfa.urls')),
]
Done. With these settings you have now, you will get the MFA features.
You can try it by hosting on your own or deploy to Heroku with a button click.
Visit our Django web development page Here
We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? Contact us here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-mfa-3.2.tar.gz
.
File metadata
- Download URL: django-mfa-3.2.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434f64a4d654fbdfd0e82a44dfa7d1529ee6a8ab377d7ddd733f29013f4839b5 |
|
MD5 | 499f912d056284581d4fe09b846e3240 |
|
BLAKE2b-256 | 21cc82ab820f7b12f17164e6801b3883a58e2ddedc8afb4834b425a41fc02aac |
File details
Details for the file django_mfa-3.2-py3-none-any.whl
.
File metadata
- Download URL: django_mfa-3.2-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2345b7a52ce3a12685ba082714fb1d705f88ae0a63ec756954f23bb4404da39 |
|
MD5 | 0737d2f18b1a74e59f357160c0d625e5 |
|
BLAKE2b-256 | 76ba548901223012413c62eaa42d38560c22792e7f49fa3a0b9b31b733b62577 |