Kerberos authentication backend for Python Social Auth
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
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
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!