django-pam 2.1.2
pip install django-pam
Released:
Django PAM authentication backend implementation.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Carl J. Nobile
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
A Django PAM authentication backend implementation.
The MIT License (MIT)
Overview
This is a simple authentication backend that uses the python-pam package. Django PAM can be used in an SSO (Single Sign On) environment or just with a single box where you want to log into a Django app with your UNIX login.
Updated for Django 4.2.x and Python 3.11.
Python 2.x has been depricated. If you need a version of Django PAM use version 2.0.1.
Provides
PAM Authentication Backend
Login and Logout Views
Templates for both standard and modal authentication.
Supporting JavaScript and CSS.
Quick Start
You will need to add Django PAM to your INSTALLED_APPS:
INSTALLED_APPS = [ ... 'django_pam', ]
Next you will need to add the Django PAM backend to the AUTHENTICATION_BACKENDS:
AUTHENTICATION_BACKENDS = [ 'django_pam.auth.backends.PAMBackend', 'django.contrib.auth.backends.ModelBackend', ]
The user that runs the application needs to be a member of the /etc/shadow file group, this is usually the web server user. This is necessary so the web server can authenticate other users. To do this run the command below with the proper user:
$ sudo usermod -a -G shadow <user>
Complete Documentation can be found on Read the Docs at: Django PAM
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Carl J. Nobile
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
Built Distribution
File details
Details for the file django-pam-2.1.2.tar.gz
.
File metadata
- Download URL: django-pam-2.1.2.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59dec13301c534d6bb19eb6f9650df88d359d1477a0d5bbd18c8951e95d532df |
|
MD5 | 37067b4b66fb9a53927b3112aef022a3 |
|
BLAKE2b-256 | 551a1de47d508a2aad7b197d425e93c754bf0819ebe14a79334f4288221fdfbe |
File details
Details for the file django_pam-2.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_pam-2.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7884f8210df49c5f48e4372c50db3fd91b16768aa77535201e1a7578240ba80 |
|
MD5 | 2d6cd4a1a313455d0fd858af8482a58c |
|
BLAKE2b-256 | dd7404b17824b4bb646a03c4692db9bea06769d90d52455b734ff20c5b52e7fa |