Skip to main content

pysaml2 integration for Django

Project description


CI build pypi Downloads Python version Django versions Documentation Status License

A Django application that builds a Fully Compliant SAML2 Service Provider on top of PySAML2 library. Djangosaml2 protects your project with a SAML2 SSO Authentication.


  • HTTP-POST SSO Binding
  • Discovery Service
  • embedded Wayf page with customizable html template
  • IdP Hinting
  • IdP Scoping
  • Samesite cookie

Please consult the official Documentation of djangosaml2 to get started.


Please open Issues to start debate regarding the requested features, or the patch that you would apply. We do not use a strict submission format, please try to be more concise as possible.

The Pull Request MUST be done on the dev branch, please don't push code directly on the master branch.

Special thanks

This is a community-driven project, born as a fork and maintained by different authors at different times, such as:

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangosaml2-1.5.3.tar.gz (55.6 kB view hashes)

Uploaded source

Built Distribution

djangosaml2-1.5.3-py2.py3-none-any.whl (65.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page