{"id":27703,"library":"djangosaml2idp2","title":"djangosaml2idp","description":"SAML 2.0 Identity Provider for Django. Current version 0.9.1, released Jan 2025. Maintained on GitHub, monthly patch releases.","status":"active","version":"0.9.1","language":"python","source_language":"en","source_url":"https://github.com/xelixdev/djangosaml2idp","tags":["saml","identity-provider","django","sso"],"install":[{"cmd":"pip install djangosaml2idp2","lang":"bash","label":"Latest"}],"dependencies":[{"reason":"Required: Django web framework","package":"django","optional":false},{"reason":"Required: SAML library","package":"pysaml2","optional":false},{"reason":"Required: SAML integration utilities","package":"djangosaml2","optional":false}],"imports":[{"wrong":"from djangosaml2idp.models import IdP","symbol":"IdP","correct":"from djangosaml2idp import IdP"}],"quickstart":{"code":"# INSTALLED_APPS += ['djangosaml2idp']\n# urls.py\nfrom django.urls import path, include\nurlpatterns = [\n    path('saml2/', include('djangosaml2idp.urls')),\n]\n# settings.py\nSAML_IDP_CONFIG = {\n    'entity_id': 'https://your-idp.example.com/saml2/metadata/',\n    'acs_endpoint': 'https://your-idp.example.com/saml2/acs/',\n    'attribute_map': {\n        'email': 'email',\n        'username': 'username',\n    },\n}","lang":"python","description":"Add to INSTALLED_APPS, include URLs, and define SAML_IDP_CONFIG."},"warnings":[{"fix":"Replace 'IdentityProvider' with 'IdP' in imports and queries.","message":"In v0.9.0 the model class 'IdentityProvider' was renamed to 'IdP'. Any code referencing IdentityProvider must be updated.","severity":"breaking","affected_versions":"<0.9.0"},{"fix":"Move attribute map inside SAML_IDP_CONFIG dict.","message":"The setting 'SAML_IDP_ATTRIBUTE_MAP' is deprecated; use 'SAML_IDP_CONFIG['attribute_map']' instead.","severity":"deprecated","affected_versions":"<0.9.0"},{"fix":"Install with 'pip install djangosaml2idp2', then import as 'djangosaml2idp'.","message":"The package is installed as 'djangosaml2idp2' on PyPI, but the Python module is 'djangosaml2idp'. Ensure you import correctly.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure both are present and valid HTTPS URLs.","message":"SAML_IDP_CONFIG must include 'entity_id' and 'acs_endpoint' as full URLs. Missing these causes AttributeError on metadata endpoint.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.9.1':10 '2.0':3 '2025':13 'current':8 'django':7,24 'djangosaml2idp':1 'github':16 'ident':4,22 'identity-provid':21 'jan':12 'maintain':14 'month':17 'patch':18 'provid':5,23 'releas':11,19 'saml':2,20 'sso':25 'version':9","created_at":"2026-05-09T05:51:37.583176+00:00","updated_at":"2026-05-09T05:51:37.583176+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'IdP' from 'djangosaml2idp' (/tmp/tmp1fv2upyl/venv/lib/python3.12/site-packages/djangosaml2idp/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/xelixdev/djangosaml2idp","docs":null,"changelog":null,"pypi":"https://pypi.org/project/djangosaml2idp2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","auth-security","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}