Skip to main content

Django app for managing multiple SAML Identity Providers.

Project description

Django Simple SAML

Django app to manage SAML Identity Providers

Version support

This app supports Python 3.12+ and Django 5.2-6.0.

Background

This library builds on top of social-auth-app-django and python3-saml, which together handle the heavy lifting of a SAML authentication flow. It assumes that you are building a service that will act as the Service Provider (SP) in the flow, and that you will be integrating with a number of external Identity Providers (IdP) for user authentication.

The core change to those libraries that this package adds is a new SAMLAuth backend called SimpleSAMLAuth that reads in IdP data from a model (i.e. the database) rather than using the settings config dict SOCIAL_AUTH_SAML_ENABLED_IDPS.

The reason for this is to make it easy to update / test new IdPs on a live environment without having to deploy. If you are running a platform that offers SSO to clients as a feature, having to embed their IdP details in the settings (which also requires a redeployment) isn't a practical option.

The IdP data is input via the Django admin site.

Settings

This package relies on the existing python-social-auth settings. See their documentation for details, or refer to the demo.settings.base module for an example.

Configuration

Click this button to deploy to Heroku:

Deploy

You must supply three SAML settings that should be available from your test IdP provider. If you have a Google Workspace account, that can be used - see https://admin.google.com/ac/security/ssocert for details.

Project details


Download files

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

Source Distribution

django_simple_saml-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_simple_saml-0.4.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file django_simple_saml-0.4.0.tar.gz.

File metadata

  • Download URL: django_simple_saml-0.4.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for django_simple_saml-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5a53ed01f7d4029c728101f895594a0f91410f7b481f62c322f5430f0bcb8565
MD5 ec2e65e33b723f5e12e94ab36d0a3cc6
BLAKE2b-256 4abb967d782757a3cb1e94e32d12d1733e76eaf691ae8e6b7a7b46a8d9e19679

See more details on using hashes here.

File details

Details for the file django_simple_saml-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_simple_saml-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e57acd55c07de1cb81c25e525ce415d5d682c2c02dabf046018ba6c81058d19e
MD5 bde951e7395de407a8c93ea9176bfcd7
BLAKE2b-256 e1e1391598096043b30b0bc634b4e8cc193b83a7d590926b3194fe144118a8ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page