A simple django freeipa rpc authentication backend app with a simple server failover solution.
Project description
Django FreeIPA Auth is a backend authentication app with a simple server failover solution which can be included in a project’s authentication backends. This app communicates with a specified FreeIPA host server and authenticates a user to the django app upon successful freeIPA login.
Detailed documentation is in the “docs” directory.
Quick start
Install using pip:
pip install django_freeipa_auth
If running on an old version of python without security updates, include the security marker:
pip install django_freeipa_auth[security]
Add “freeipa_auth” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'freeipa_auth', ]
Add “freeipa_auth.backends.FreeIpaRpcAuthBackend” to your AUTHENTICATION_BACKENDS in your settings file like this:
AUTHENTICATION_BACKENDS = [ ... 'freeipa_auth.backends.FreeIpaRpcAuthBackend', ]
Override settings in your settings file like this:
FREEIPA_AUTH_BACKEND_ENABLED = True FREEIPA_AUTH_SERVER = "ipa.foo.com" # defaults to None FREEIPA_AUTH_FAILOVER_SERVER = "ipa.failover.com" # defaults to None FREEIPA_AUTH_SSL_VERIFY = True # this would be the path to the ssl cert used FREEIPA_AUTH_UPDATE_USER_GROUPS = True # defaults to False FREEIPA_AUTH_ALWAYS_UPDATE_USER = True FREEIPA_AUTH_USER_ATTRS_MAP = {"first_name": "givenname", "last_name": "sn", "email": "mail"}
Start the development server and visit http://127.0.0.1:8000/admin/ to login via freeipa rpc authentication.
Project details
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
Hashes for django-freeipa-auth-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b356d9d9c584d2cf9252c735ec36496e54be60f540da4ec31cfde8b9289c912a |
|
MD5 | eab29f497c06b3e689a972be28bcf360 |
|
BLAKE2b-256 | 1a30369a7ee20c97b6edd4afc16b30784357be735d75d11b2c88db0ed5ed9a6b |