Skip to main content

SAML 2.0 IdP for Django

Project description

https://travis-ci.org/mobify/dj-saml-idp.svg?branch=master

This is a fork novapost/django-saml2-idp that is distributed indipendantly as dj-saml-idp.

dj-saml-idp implements the Identity Provider side of the SAML 2.0 protocol and makes user authentication available to external applications.

Note: Only supports Django 1.5+.

Testing

The test runner is pytest and we are using tox to run tests against different versions of Django. The test can be run locally using either tox directly (preferably in a virtualenv):

$ pip install tox
$ tox

Or inside a Docker container using using the provided Dockerfile and with docker-compose (requires docker and docker-compose to be installed):

$ docker-compose run test

Release

First of all, create a new version of the package. We use bumpversion to handle updating all version strings, committing the changes and creating a new git tag automatically. To bump the packag version use the follwoing command with whichever part of the semantic version you’d like to update:

$ bumpversion (major|minor|patch)

for instance for a minor update, use (which should be the most common case):

$ bumpersion minor

You need the PyPI credentials for the mobify account to be able to release a new version and the build script is expecting it defined as an environment variable:

$ export PYPI_PASSWORD=supersecretpassword

Releasing 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 in saml2idp/__init__.py is the one that you’d like to create on PyPI.

With that done, all you need to do is run the following commands:

$ make release

This will cleanup the build/ and dist/ directories, build a source package and a Python wheel. Both will then be uploaded to PyPI.

License

Distributed under the MIT License.

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

dj-saml-idp-0.21.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

dj_saml_idp-0.21.1-py2.py3-none-any.whl (22.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj-saml-idp-0.21.1.tar.gz.

File metadata

File hashes

Hashes for dj-saml-idp-0.21.1.tar.gz
Algorithm Hash digest
SHA256 c75512597662083724149ed558399ff15756776aa24ba505d0c1414e4886d766
MD5 b231d428888ce9602bab10f270f904ce
BLAKE2b-256 d63f5891da2e4fc27de82a39f980bd2635a303d352b9927f8a523d6bc3c0458b

See more details on using hashes here.

File details

Details for the file dj_saml_idp-0.21.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_saml_idp-0.21.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6b9e20593c5a3cf170c85b5cf3c2e565ce8acc313e60f7663a11f2f62c5d73a
MD5 d92a0d9b6ac26e1c4af9f0f462d51920
BLAKE2b-256 19febc806a7a2f7e2604d79043d89cd7a6d2dfc120dc13fc0888fedd81a9fe9d

See more details on using hashes here.

Supported by

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