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
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"} FREEIPA_AUTH_SERVER_TIMEOUT = 5Start the development server and visit http://127.0.0.1:8000/admin/ to login via freeipa rpc authentication.
Running Tests
Tests are run using tox to test on multiple python and Django versions. To avoid needing to install multiple python binaries, use the docker-compose.test.yml config to run the test in a Docker container.
``bash docker-compose -f docker-compose.test.yml up `
Metadata
Release files for django-freeipa-auth 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-freeipa-auth-2.0.3.tar.gz | 6.4 kB | Without provenance | Details for django-freeipa-auth-2.0.3.tar.gz |
Release files / django-freeipa-auth-2.0.3.tar.gz
| Download URL | django-freeipa-auth-2.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c46349a72a0ddaa7ac3bf15a9e09ea35c7401cdad605a3ee7f8c64ee5ba0ff2
|
|
BLAKE2b-256 checksum How to use checksums |
a80072754f44a6a010be51add66c319da1c42c02d5e95da657d80d66fa9fbc71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Security for django-freeipa-auth 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.