Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

MicroPyramid/django-mfa

Repository files navigation

Documentation Statushttps://travis-ci.org/MicroPyramid/django-mfa.svg?branch=masterLatest Releasehttps://coveralls.io/repos/github/MicroPyramid/django-mfa/badge.svg?branch=masterCode 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

Thedjango_mfa package, included in the distribution, should beplaced on thePYTHONPATH.

Otherwise you can justeasy_install -Z django-mfaorpip 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 = TrueMFA_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 pageHere

We welcome your feedback and support, raisegithub ticket if you want to report a bug. Need new features?Contact us here

About

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

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors22


[8]ページ先頭

©2009-2025 Movatter.jp