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

Uploaded Source

File details

Details for the file django-ideler-mfa-0.0.20.tar.gz.

File metadata

  • Download URL: django-ideler-mfa-0.0.20.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for django-ideler-mfa-0.0.20.tar.gz
Algorithm Hash digest
SHA256 aa805ea3e75be01db6e116134a21db0139a89d8065951c40cc5febf1e092a074
MD5 0e438b4398f926f9c46201c34a13f6bc
BLAKE2b-256 91a987d225ee15d3a6706dff4617e990f9ccf15ed52fc322a5807de0e94bc3a8

See more details on using hashes here.

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