Django app to implement two factor authentication with bootstrap modals
Project description
Installation
settings
from modal_2fa.settings_helper import modal_2fa_apps_admin
INSTALLED_APPS += [
*modal_2fa_apps_admin,
]
OTP_TOTP_ISSUER = '**appname**'
AUTHENTICATION_BACKENDS = ['modal_2fa.auth.CookieBackend']
LOGIN_URL ='/auth/login/'
LOGOUT_REDIRECT_URL = '/auth/login'
remove
'django.contrib.auth'
from INSTALLED_APPS
urls
from modal_2fa.utils import get_custom_auth
urlpatterns += [
path('', include(get_custom_auth().paths(include_admin=True))),
]
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-modal-2fa-0.0.2.tar.gz
(12.2 kB
view details)
Built Distribution
File details
Details for the file django-modal-2fa-0.0.2.tar.gz
.
File metadata
- Download URL: django-modal-2fa-0.0.2.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226549fc6be35282a8d4c6a3e38ae2ec7bc668f1ecced90290d1cc994a724473 |
|
MD5 | c03eaa6a2391eaad69e71e6f5e960797 |
|
BLAKE2b-256 | ea449c54222b3509a57d7a77cc22187ab9175642bc4e8c93e9daa208c26c186b |
File details
Details for the file django_modal_2fa-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_modal_2fa-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0707b85875171293fc72ec240f1117ebc1556033ecdc5c69f4e3073afa7f268f |
|
MD5 | e773b383e09bb33cdad431c5a16acccb |
|
BLAKE2b-256 | 6ffc8b07c64da731e0ecc4e845247ff7fa5cf2f02a12c3d7134c5e756fde389a |