Registry / auth-security / grafana-django-saml2-auth

grafana-django-saml2-auth

JSON →
library3.21.0pypypi✓ verified 79d ago

Deprecated compatibility shim for SAML2 authentication in Django, originally developed for Grafana. The current version is 3.21.0. The project has been migrated to django-saml2-auth-community; this package is now a no-op wrapper. Install django-saml2-auth-community instead for ongoing maintenance.

pip install django-saml2-auth-community
INSTALL
IMPORT
SIG · GRAFANA-DJANGO-SAM
G
grafana-django-saml2-auth
auth-securitypythonv3.21.0
Install
3.9s avg
Import
Disk
140MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 4.7s
py 3.11
✓ —
✓ 3.7s
py 3.12
✓ —
✓ 3.6s
py 3.13
✓ —
✓ 3.5s
py 3.9
✕ build_error
✕ build_error
140MB installed
● package 140MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

importlib
from django_saml2_auth import importlib
from django_saml2_auth import views

Basic integration of django-saml2-auth-community.

# settings.py INSTALLED_APPS = [ ... 'django_saml2_auth', ] AUTHENTICATION_BACKENDS = [ 'django_saml2_auth.backends.SAML2Backend', 'django.contrib.auth.backends.ModelBackend', ] SAML2_AUTH = { 'METADATA_FILE': '/path/to/metadata.xml', 'ENTITY_ID': 'https://your-app.example.com/saml2/metadata/', 'ACS_URL': 'https://your-app.example.com/saml2/acs/', } # urls.py from django.urls import path, include urlpatterns = [ path('saml2/', include('django_saml2_auth.urls')), ]
Debug
Known issues
breakingThis package (grafana-django-saml2-auth) is deprecated. Do not install it. Install django-saml2-auth-community instead.
fix
pip uninstall grafana-django-saml2-auth && pip install django-saml2-auth-community
affects: >=3.21.0
gotchaThe import path is 'django_saml2_auth' (underscores), not 'django_saml2_auth' (same). Ensure your code uses correct underscores to avoid ImportError.
fix
Use: from django_saml2_auth import views
affects: all
gotchaRequires Python >= 3.10. Older Python versions will fail to install.
fix
Upgrade Python to 3.10 or later.
affects: >=3.21.0
Upgrade
Version history
3.21.0latest on PyPI · released Apr 11, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
grafana-django-saml2-auth — pip install grafana-django-saml2-auth · libregistry