A simple django freeipa rpc authentication backend app with a simple server failover solution.
Project description
===================
Django FreeIPA Auth
===================
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
-----------
1. Add "freeipa_auth" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'freeipa_auth',
]
2. Add "freeipa_auth.backends.FreeIpaRpcAuthBackend" to your AUTHENTICATION_BACKENDS
in your settings file like this::
AUTHENTICATION_BACKENDS = [
...
'freeipa_auth.backends.FreeIpaRpcAuthBackend',
]
3. 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"}
4. Start the development server and visit http://127.0.0.1:8000/admin/
to login via freeipa rpc authentication.
Django FreeIPA Auth
===================
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
-----------
1. Add "freeipa_auth" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'freeipa_auth',
]
2. Add "freeipa_auth.backends.FreeIpaRpcAuthBackend" to your AUTHENTICATION_BACKENDS
in your settings file like this::
AUTHENTICATION_BACKENDS = [
...
'freeipa_auth.backends.FreeIpaRpcAuthBackend',
]
3. 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"}
4. 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
Close
Hashes for django-freeipa-auth-0.1.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6432c3440a3ed7e87cb89887eec843da5cfdbbda5f9044ec64fd9f152aa2889 |
|
MD5 | 3a970148a2d3206007b1773377950686 |
|
BLAKE2b-256 | 580ede6777c0be1a4e27dccef811f2a63e5f24bfe7092e0e47e15838257e695b |
Close
Hashes for django_freeipa_auth-0.1.dev4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ec54893918a0eb6808f45d3c3c34e9af5c79289ea8ee8341d47f267ec3a10a |
|
MD5 | 0ad1d12c8db493fa0509b9e964d4d9f2 |
|
BLAKE2b-256 | ead263f3355a85ba789d1c1a0e552ed3c03d79f2c2540c33b9e3871066f613d4 |