Multi-factor authentication for Django.
Project description
Ideler MFA
Die Multi-Faktor Authentisierung wird automatisch in das Admin-Interface von Django eingesetzt. Oben rechts, in der nähe des Logout-Links, lässt sich die MFA einrichten.
Installation
Paket ‘django-ideler-mfa’ installieren:
pip install django-ideler-mfa
Nach der Installation, ideler_mfa den INSTALLED_APPS in der settings.py hinzufügen:
INSTALLED_APPS = ( ... 'ideler_mfa', )
URLs hinzufügen:
urlpatterns = [ ... path("mfa/", include("ideler_mfa.urls")), ... ]
Die Middleware nach der AuthenticationMiddleware hinzufügen:
MIDDLEWARE = ( ... "django.contrib.auth.middleware.AuthenticationMiddleware", "ideler_mfa.middleware.MFAMiddleware", ... )
Konfiguration
In der settings.py:
IDELER_MFA = { "ISSUER_NAME": "Ideler MFA Demo", "CONFIGURATION_REDIRECT_URL": "/", }
Templates zum überschreiben:
'ideler_mfa/select.html' 'ideler_mfa/configure.html' 'ideler_mfa/verify.html' 'ideler_mfa/disable.html'
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
django-ideler-mfa-0.0.20.tar.gz
(11.0 kB
view hashes)