{"id":23809,"library":"grafana-django-saml2-auth","title":"Grafana Django SAML2 Auth","description":"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.","status":"deprecated","version":"3.21.0","language":"python","source_language":"en","source_url":"https://github.com/mostafa/django-saml2-auth","tags":["django","saml2","authentication","grafana","deprecated"],"install":[{"cmd":"pip install django-saml2-auth-community","lang":"bash","label":"Preferred installation"}],"dependencies":[],"imports":[{"note":"Import path is unchanged between deprecated and new package.","wrong":"","symbol":"django_saml2_auth","correct":"from django_saml2_auth import views"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    ...\n    'django_saml2_auth',\n]\n\nAUTHENTICATION_BACKENDS = [\n    'django_saml2_auth.backends.SAML2Backend',\n    'django.contrib.auth.backends.ModelBackend',\n]\n\nSAML2_AUTH = {\n    'METADATA_FILE': '/path/to/metadata.xml',\n    'ENTITY_ID': 'https://your-app.example.com/saml2/metadata/',\n    'ACS_URL': 'https://your-app.example.com/saml2/acs/',\n}\n\n# urls.py\nfrom django.urls import path, include\nurlpatterns = [\n    path('saml2/', include('django_saml2_auth.urls')),\n]","lang":"python","description":"Basic integration of django-saml2-auth-community."},"warnings":[{"fix":"pip uninstall grafana-django-saml2-auth && pip install django-saml2-auth-community","message":"This package (grafana-django-saml2-auth) is deprecated. Do not install it. Install django-saml2-auth-community instead.","severity":"breaking","affected_versions":">=3.21.0"},{"fix":"Use: from django_saml2_auth import views","message":"The import path is 'django_saml2_auth' (underscores), not 'django_saml2_auth' (same). Ensure your code uses correct underscores to avoid ImportError.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.10 or later.","message":"Requires Python >= 3.10. Older Python versions will fail to install.","severity":"gotcha","affected_versions":">=3.21.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install django-saml2-auth-community","cause":"Attempting to import from the deprecated package after installing grafana-django-saml2-auth. The package does not actually contain the module; it's a shim that issues a deprecation warning.","error":"ModuleNotFoundError: No module named 'django_saml2_auth'"},{"fix":"Use: AUTHENTICATION_BACKENDS = ['django_saml2_auth.backends.SAML2Backend', ...]","cause":"Typo in the backend path. The correct class is SAML2Backend (capital letters).","error":"ImportError: cannot import name 'SAML2Backend' from 'django_saml2_auth.backends'"},{"fix":"pip uninstall grafana-django-saml2-auth; pip install django-saml2-auth-community","cause":"Installing the deprecated shim triggers a pip deprecation warning.","error":"WARNING: grafana-django-saml2-auth 3.21.0 is deprecated. You should install django-saml2-auth-community."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}