Skip to main content

Django AllAuth Saml2 provider

Project description

https://badge.fury.io/py/django-allauth-saml2.svg

Django allauth saml2 provider, this provider is based on pysaml2 (https://pysaml2.readthedocs.io/)

Quick start

  1. Add “allauth_saml2” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'allauth_saml2',
    ]
    
    SOCIALACCOUNT_PROVIDERS = {
        'saml2': {
            # Metadata is required, choose either remote url or local file path
            'METADATA_AUTO_CONF_URL': 'The metadata configuration url',
            'METADATA_LOCAL_FILE_PATH': 'The metadata configuration file path',
    
            # EntityID populates the Issuer element in authn request Entity ID, optional, url of sp is used when missing
            # 'ENTITY_ID': 'https://mysite.com/saml2_auth/acs/', #
    
            # 'NAME_ID_FORMAT': FormatString, # Sets the Format property of authn NameIDPolicy element
    
            # encrypt/sign assertions
            # 'KEY_FILE': 'key.pem path',
            # 'CERT_FILE': 'cert.pem path',
    
            # 'ACCEPTED_TIME_DIFF':
        }
    }

Credits

Tools used in rendering this package:

History

0.1.0 (2021-04-30)

  • First release on PyPI.

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-allauth-saml2-0.2.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

django_allauth_saml2-0.2.0-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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