Package: django4-saml-idp
dj-saml-idpThis is a fork ofdeforestg/dj-saml-idpwhich is a fork ofmobify/dj-saml-idpthat is distributed independently asdjango4-saml-idp.The original project is athttps://github.com/guitarmanvt/django-saml2-idpdj-saml-idpimplements the Identity Provider (IDP) side of the SAML 2.0
protocol and makes user authentication available to external applications.This package supports Django 1.9+ through 4.1.3.Development And TestingThe package uses a Docker container to support both development and
tests. The container creates virtual environments for different
Python versions as below:Python 2.7 in/venv27Python 3.8 in/venv38These environments may be used for development and interactive testing.To build and run the container, to get a bash prompt:dockerbuild-tdj-saml-idp:latest.
docker-composerun--service-portstestTo support use of IDEs (such as PyCharm) for development, the container
can also run SSHD; run the commanddocker/run_sshd.shat a bash prompt
in the container. In the commands above, the --service-ports option is
only needed if you intend to run sshd in the container.The test runner ispytest. For release tests, we usetoxto run
the tests against different versions of Python and Django. The tests
can be run inside the Docker container usingtox:$./venv38/bin/activate
$toxReleaseFirst of all, create a new version of the package. We usebumpversion_ to
handle updating all version strings, committing the changes and creating a
new git tag automatically. To bump the package version use the following
command with whichever part of the semantic version you'd like to update::$ bumpversion (major|minor|patch)for instance for aminorupdate, use (which should be the most common case)::$ bumpversion minorYou need the PyPI credentials for themobifyaccount to be able to release
a new version and the build script is expecting it defined as an environment
variable:$ export PYPI_PASSWORD=supersecretpasswordReleasing a new version to PyPI is very simple. The first thing you need to do
is make sure that all the test are passing and that the version insaml2idp/__init__.pyis the one that you'd like to create on PyPI.With that done, all you need to do is run the following commands::$ rm -rf build/ dist/ django_saml_idp.egg-info
$ make releaseThis will cleanup thebuild/anddist/directories, build a source package
and a Python wheel. Both will then be uploaded to PyPI.LicenseDistributed under theMIT License... _novapost/django-saml2-idp:https://github.com/novapost/django-saml2-idp.. _MIT License:https://github.com/mobify/dj-saml-idp/blob/master/LICENSE.. _wheel:http://wheel.readthedocs.org/en/latest/.. _bumpversion:https://github.com/peritus/bumpversionRelease History1.4.0 (2022-11-16)Fork tohttps://github.com/bctiemann/dj-saml-idpSupport Django 3.2.16 and 4.1.31.3.2 (2021-01-14)Fork tohttp://github.com/deforestg/dj-saml-idpSupport Django 2.21.0.0 (2019-11-06)Refactor development and test environmentSupport Python 30.22.0 (2016-05-26)Allow aredirect_toparameter to be passed to the logout view to redirect
the user to after succesful logout instead of showing the logout page.Introduce logging throughstructlogand provide more informative logging
out put to make SAML flows easier to debug. Log messages are all logged under
thesaml2idplogger now.Adding a new-style processor that carries anameattribute which allows
custom templates for each processor during the SSO process. Custom templates
are optional and will default to the same templates as before. The change is
backwards compatible and handles old-style processors as previously.0.21.2 (2016-04-18)Switched fromdjango.utils.importlibto Python's standardimportlibto
work with Django 1.9.Update the test setup to run tests against Django 1.9 in addition to all
other versions of Django.