Django authorization backend with pam |
Django pam auth
The full documentation is at https://django-auth-backend-pam.readthedocs.io.
Install Django authorization backend with pam:
pip install django-auth-backend-pam
Add it to your `INSTALLED_APPS`:
INSTALLED_APPS = (
...
"auth_backend_pam",
...
)
Add PAM_USERS settings
PAM_USERS = {
"is_active": True,
"is_staff" : True,
"is_superuser": True,
}
And add AUTHENTICATION_BACKENDS settings
AUTHENTICATION_BACKENDS = [
...
"auth_backend_pam.backends.PamBackend",
]
- TODO
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
pip install -r requirements_dev.txt
invoke -l
Tools used in rendering this package: