Skip to main content

Authenticate against a privacyIDEA server. (https://www.privacyidea.org/)

Install

virtualenv --python=python3.5 Django_python3.5
source Django_python3.5/bin/activate
pip install django-privacyidea-auth

Or from github

virtualenv --python=python3.5 Django_python3.5
source Django_python3.5/bin/activate
git clone https://github.com/jeweber/django-privacyidea-auth.git
pip install django-privacyidea-auth/

Quick start

Add the following to your project/settings.py:

AUTHENTICATION_BACKENDS =  ('django.contrib.auth.backends.ModelBackend',
                            'django_privacyidea_auth.privacyidea_auth.PrivacyIDEA', )
PRIVACYIDEA = {
    'url' : 'https://privacyidea/validate/samlcheck',
    'timeout' : 5,
    'ssl_verify' : False,
    'create_user' : False,
    'update_attributes': True,
    'realm': None,
    'enforce_realm': False,
    }

‘url’: url of privacyIDEA server to validate the user

‘timeout’: validation timeout in seconds

‘ssl_verify’: certificate verification, set to True is strongly advised

‘create_user’: if set to True, the user in the django DB will be created, if PrivacyIDEA returns a successful authentication

‘update_attributes’: if set to True, the user attributes in the django DB will be updated, if privacyidea samlcheck returns user attributes

‘realm’: if set, the realm of the user, who tries to authenticate. If the realm is None, the user is looked up in the default realm

‘enforce_realm’: if set, login name must contains ‘@’ too separates realm from the username

Release files for django-privacyidea-auth 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-privacyidea-auth 0.3
File Size Uploaded
django-privacyidea-auth-0.3.tar.gz 4.2 kB Details

Release files / django-privacyidea-auth-0.3.tar.gz

Download URL django-privacyidea-auth-0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e239665b31f57f95292903fd05f7b48aba12f42357a912de064b375a9b2faacb
BLAKE2b-256 checksum
How to use checksums
888c18616794257a7f214c69cbd276b4b21bd6e8088d6b004d0f996a523af7b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page