Kerberos authentication backend for Python Social Auth
Project description
Introduction
This package provides Kerberos backend for Python Social Auth. It can be used to enable passwordless authentication inside a Django app or any other application that supports Python Social Auth. This is a pure Python implementation which doesn’t depend on Apache mod_auth_kerb.
To install:
pip install social-auth-kerberos
Then configure PSA and add the following settings:
AUTHENTICATION_BACKENDS = [ 'social_auth_kerberos.backend.KerberosAuth', 'django.contrib.auth.backends.ModelBackend', ] SOCIAL_AUTH_KRB5_KEYTAB = '/tmp/your-application.keytab'
For more information about Kerberos see:
- How to configure Firefox for kerberos
- How to configure kerberos on Fedora
- How to generate a keytab file
Warning
USE AT YOUR OWN RISK!
This module has been tested manually with Kiwi TCMS. Automated tests do not exist because we can’t quite figure out how to use gssapi-console as part of unit tests! If you do figure it out a pull request will be greatly appreciated!
Changelog
v0.2.3 (22 Mar 2020)
- Keep a reference to current user before checking anything else. Resolves a crash for clients which know that the server is Kerberos enabled and directly send the Authorization header
- Be more tolerant to authorization request headers which don’t match RFC-4459, section 4.2
v0.2.2 (10 Nov 2019)
- Pin license version to GPLv2 for Tidelift
v0.2.1 (10 Dec 2018)
- Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size social_auth_kerberos-0.2.3-py3-none-any.whl (6.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size social-auth-kerberos-0.2.3.tar.gz (3.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for social_auth_kerberos-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c1a6785889648e7fbb5f6488992c71001052fe260de5316e7fd752909bf297 |
|
MD5 | 6ec94be8f8d31a74317d5b8c5ffd96ba |
|
BLAKE2-256 | 0b88f643e13141b85e8df68ad3f94f7ba635125dd6cb235fb057393a8ee86ed2 |
Hashes for social-auth-kerberos-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e5f62c00ec1e43c981a02d1d09c8179afca937f80af733c9d6dd1a2ca474f7 |
|
MD5 | ff1154f185addf5c974a270c3f9bb003 |
|
BLAKE2-256 | d10bbf9c526dedd854a4dbd529d2f5be1692cdd62f12d767a4449dae7279899c |