• Stars
    star
    174
  • Rank 211,966 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Django-mfa (Multi Factor Authentication) is a simple package to add extra layer of security to your django web application. It gives web app a randomly changing password as an extra protection and supports u2f too

django-mfa

Documentation Status https://travis-ci.org/MicroPyramid/django-mfa.svg?branch=master Latest Release https://coveralls.io/repos/github/MicroPyramid/django-mfa/badge.svg?branch=master Code Health

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 the following Django versions: 2.2, 3.0, 3.1, 3.2. 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

  1. Add app name in settings.py:

    INSTALLED_APPS = [
       '..................',
       'django_mfa',
       '..................'
    ]
    
  2. Add 'django_mfa.middleware.MfaMiddleware' to your project middlewares:

    MIDDLEWARE = [
       '....................................',
       'django_mfa.middleware.MfaMiddleware',
       '....................................',
    ]
    
  3. Optional issuer name. This name will be shown in the Authenticator App along with the username

    MFA_ISSUER_NAME = "Cool Django App"

  4. 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

More Repositories

1

Django-CRM

Open Source CRM based on Django
Python
1,541
star
2

forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
Python
596
star
3

opensource-job-portal

opensource jobportal in python django
HTML
311
star
4

django-blog-it

django blog - complete customization and ready to use with one click installer
HTML
224
star
5

docker-box

Web Interface to manage full blown docker containers and images.
Python
111
star
6

MicroSite

Full featured and completely customizable django site for organizations.
CSS
79
star
7

django-web-profiler

Django package to log request values such as device, IP address, user CPU time, system CPU time, No of queries, SQL time, no of cache calls, missing, setting data cache calls for a particular URL with a basic UI.
Python
79
star
8

micro-finance

Free Micro Finance Software
Python
75
star
9

django-webpacker

A django compressor tool that bundles css, js files to a single css, js file with webpack and updates your html files with respective css, js file path.
Python
73
star
10

django-simple-forum

full featured forum, easy to integrate and use.
Python
67
star
11

forex-rates-mobile-app

Foreign exchange rates, Currency converter mobile app using ReactNative
JavaScript
50
star
12

react-crm

CRM UI developed in reactjs for Django-CRM
JavaScript
44
star
13

microurl

python library for url minification.
Python
44
star
14

django-simple-pagination

django pagination as you want it to be
Python
44
star
15

django-payu

payu payment gateway integration for django projects
Python
39
star
16

flutter-crm

CRM app developed in flutter for Django-CRM
Dart
35
star
17

django-email-gateway

A django package which act as a gateway to send and receive email with amazon SES.
Python
28
star
18

deploy-python

deploy python, django flask projects with fabric
Python
26
star
19

knol-bits

A curated list of awesome Linux, Django, Python, flutter, react, salesforce, AWS, VAPT and other programming languages or resources that we use internally.
22
star
20

microsocial

Collection of Social APIs (Facebbok, Twitter, Linkedin, GitHub)
Python
20
star
21

fetch-tweets

Fetch tweets using javascript
JavaScript
17
star
22

RaspIce

DarkIce on RaspberryPI
C++
16
star
23

Mongo-Slice

CSS
16
star
24

ngo-cms

Free opensource CMS for non profit organisations.
CSS
8
star
25

cicd-tutorial

This Sample Django project is used in youtube video to demonstrate CI/CD using Gitlab and Docker
Python
8
star
26

git-daily-reports

Python
6
star
27

django-url-shortener

Python
6
star
28

react-radio-player

Opensource online radio player UI developed in react. For learning purpose.
JavaScript
4
star
29

Responsive-Advert-Slider

CSS
4
star
30

django-tutorial

Django hands on tutorial
HTML
3
star
31

salesforce-b2b-commerce

Apex
3
star
32

angular-jobportal-ui

PeelJobs UI in angular
HTML
2
star
33

flutter-radio-player

Radio player app
Dart
2
star
34

micropyramid.github.io

MicroPyramid Opensource projects
HTML
2
star
35

meetup

Python
1
star
36

angular-crm

Angular CRM UI for bottleCRM
TypeScript
1
star
37

CI-CD

CI/CD Templates
1
star