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', ]
Add settings to your settings file like this:
FREEIPA_AUTH_BACKEND_ENABLED = True FREEIPA_AUTH_SERVER = "ipa.foo.com" FREEIPA_AUTH_FAILOVER_SERVER = "ipa.failover.com" FREEIPA_AUTH_SSL_VERIFY = True FREEIPA_AUTH_UPDATE_USER_GROUPS = True FREEIPA_AUTH_UPDATE_USER_PERMISSIONS = True FREEIPA_AUTH_USER_FLAGS_BY_GROUP = {"is_staff": ["admin"], "is_superuser": ["superuser"]} FREEIPA_AUTH_REQUIRE_GROUP_PREFIX = "foo.django.group." FREEIPA_AUTH_REQUIRE_PERMISSION_PREFIX = "foo.django.permission." FREEIPA_AUTH_ALWAYS_UPDATE_USER = True FREEIPA_AUTH_AUTHORIZE_ALL_USERS = False FREEIPA_AUTH_USER_ATTRS_MAP = {"first_name": "givenname", "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
Built Distribution
Hashes for django-freeipa-auth-0.1.dev6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24cf787a2a4a7a2651f408b5431477ee151cdaa850ef6b4cdd3d85ed14cf6da6 |
|
MD5 | 89f49f04eac8072c6dd4f172232a02ea |
|
BLAKE2b-256 | 0dbe722906f1180a3386dcb98a052bd1ad72efef505401283c9d093e73f045b6 |
Hashes for django_freeipa_auth-0.1.dev6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b54a2b239eef2843ef8e82101ed0c0b0e63427dd118acc0740ecf3c5d877abb7 |
|
MD5 | 601c6096a1ff9df8711c1f3f5c333705 |
|
BLAKE2b-256 | 4aeef120d13e88ca37ffcdef9b588849576023c591e27d18833fee7f0676a84b |