skillfed

grafana-django-saml2-auth

Deprecated compatibility package. Install django-saml2-auth-community instead.

grafana-django-saml2-auth v3.21.0 126.8K downloads/30d#11,763 on PyPI9
Permissive license Apache-2.0 Active released

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-auth

uv

uv add grafana-django-saml2-auth

poetry

poetry add grafana-django-saml2-auth

Installing 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

Development Status :: 7 - InactiveProgramming Language :: Python :: 3

Tags

django saml2 authenticationsaml sso djangodjango saml2 authsaml identity provider djangodjango single sign-onsaml2 django integrationdjango okta saml
saml2-ssoauthenticationdeprecated-shim

More Dynamic Content packages