Inline metadata plugin for django-saml2-auth
Project description
A plugin to support inline metadata configuration in django-saml2-auth
# Introduction
By default, django-saml2-auth only supports metadata from a local file or a remote URL. The underlying library supports
“inline” metadata i.e. a string in the settings file. This makes it possible to follow the [12factor]()
methodology because an environment variable can be used to provide this “inline” data.
# Example
In settings.py:
INSTALLED_APPS += (
…
‘django_saml2_auth’,
# ensure the plugin is loaded
‘django_saml2_auth_metadata_inline’,
…
)
# this is the “usual” config object from django-saml2-auth
SAML2_AUTH = {
‘DEFAULT_NEXT_URL’: ‘/’,
‘PLUGINS’: {
# use this package in lieu of DEFAULT metadata plugin (or list both)
‘METADATA’: [‘INLINE’],
}
# plugin looks for configuraiton here
‘METADATA_XML_STRING’: os.environ.get(‘SAML_CONFIG’)
}
Keywords: Django SAML2 Plugin for Inline Metadata Platform: UNKNOWN Classifier: Development Status :: 3 - Alpha Classifier: Intended Audience :: Developers Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: License :: OSI Approved :: Apache Software License Classifier: Framework :: Django :: 1.5 Classifier: Framework :: Django :: 1.6 Classifier: Framework :: Django :: 1.7 Classifier: Framework :: Django :: 1.8 Classifier: Framework :: Django :: 1.9 Classifier: Framework :: Django :: 1.10 Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6
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
Hashes for django_saml2_auth_metadata_inline-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc79d7c9d06934934cd9bb4530edc4c828bda37a7e29ae560a6ab761b152191a |
|
MD5 | 070ac3eb68db613ae28c5e356a667f83 |
|
BLAKE2b-256 | c18eca41f88249a2bd1faea50df12e7aefc149846c620b4120f83c1c30bb1a77 |