Skip to main content

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


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.19.tar.gz (11.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page