grafana-django-saml2-auth
Deprecated compatibility package. Install django-saml2-auth-community instead.
What it is and what it does
This package is a deprecated compatibility layer that was originally maintained by Grafana but is now a redirect to django-saml2-auth-community, the actively maintained fork. It integrates SAML2 authentication into Django applications, supporting both IdP-initiated and SP-initiated single sign-on flows. The underlying library handles SAML2 assertion validation, user creation, and attribute mapping according to your configuration.
The package depends on django-saml2-auth-community for all actual functionality. Installing grafana-django-saml2-auth will pull in that community package, so you get the same SAML2 authentication capabilities but through the maintained line. The only reason to use this shim is if you have existing code or lock files that reference the old package name; new projects should install django-saml2-auth-community directly.
Use it for:
- Migrating from the original grafana-django-saml2-auth to the community fork without changing import statements.
- Updating lock files or requirements.txt that still reference grafana-django-saml2-auth without breaking existing deployments.
- Adding SAML2 SSO to a Django app that needs to work with Okta or other SAML2 identity providers.
- Enabling both IdP-initiated and SP-initiated authentication flows in a Django application.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A compatibility shim that redirects to django-saml2-auth-community, the community-maintained SAML2 authentication library for Django applications.
No—install django-saml2-auth-community directly instead. This package is a deprecated compatibility shim; it exists only to redirect old references to the maintained fork. Using it adds an unnecessary layer of indirection. If you have existing code referencing grafana-django-saml2-auth, the shim will work, but new projects and migrations should use django-saml2-auth-community.
Install
grafana-django-saml2-auth on PyPI
pip
pip install grafana-django-saml2-authuv
uv add grafana-django-saml2-authpoetry
poetry add grafana-django-saml2-authInstalling grafana-django-saml2-auth
Before you install
Low install friction; the package is a pure Python wheel with a single runtime dependency. Maintenance is active, with the last commit on 2026-08-06 and a release on 2026-04-11. However, the package itself is deprecated—it exists only as a compatibility shim redirecting users to django-saml2-auth-community.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. No notable licensing constraints for typical deployment.
Quickstart
pip install grafana-django-saml2-auth
import django_saml2_auth.views
# In urls.py:
re_path(r'^sso/', include('django_saml2_auth.urls'))
Requires xmlsec1 system library; install via package manager (apt-get install xmlsec1 on Debian/Ubuntu, yum install xmlsec1 on RPM-based systems, or brew install xmlsec1 on macOS).
Verify before relying
- Whether the compatibility shim maintains full API parity with the original grafana-django-saml2-auth package.
- Performance or behavioral differences between the shim and direct use of django-saml2-auth-community.
- Whether xmlsec1 system dependency is automatically installed or requires manual setup.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — django-saml2-auth-community |
| Maintenance | actively maintained — 125 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 126,841/month — #11,763 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: grafana_django_saml2_auth-3.21.0-py3-none-any.whl
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
djangosaml2idp2Implements the SAML 2.0 Identity Provider side…
permissive · top 15,000 on PyPI
djangosaml2Integrates SAML2 single sign-on authentication…
permissive · top 15,000 on PyPI
pysaml2PySAML2 is a pure Python implementation of SAML…
unclear · top 5,000 on PyPI
python3-samlTurns a Python application into a SAML 2.0…
permissive · top 5,000 on PyPI
django-auth-adfsIntegrates Django applications with Microsoft…
permissive · top 15,000 on PyPI
django-google-ssoAdds Google OAuth 2.0 authentication to Django…
permissive · top 15,000 on PyPI
yawssoSyncs AWS CLI v2 SSO login sessions into legacy…
permissive · top 15,000 on PyPI
social-auth-app-djangoIntegrates social authentication and…
permissive · top 5,000 on PyPI
django-allauthProvides integrated local and social…
permissive · top 5,000 on PyPI
types-pysaml2Provides type annotations (stubs) for the…
copyleft · top 15,000 on PyPI