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
Metadata
Release files for django-saml2-auth-metadata-inline 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_saml2_auth_metadata_inline-0.0.8.tar.gz | 3.0 kB | Details |
Release files / django_saml2_auth_metadata_inline-0.0.8.tar.gz
| Download URL | django_saml2_auth_metadata_inline-0.0.8.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6788af75b704ee691aad953e43113340bbd7e66d723e665b0088f766d14e4b4
|
|
BLAKE2b-256 checksum How to use checksums |
3af5a084d9ab1131397b8faeb7b880e17bbefc58b22026b00de13e46a1a055fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|