An example service provider (SP) written in python that integrates with 18F's identity-idp.
This is a very simply app based the flask and python-saml which
supports SAML-based SSO and SLO.
$ virtualenv venv
$ pip install -r requirements.txt
$ . venv/bin/activate
$ python demosp_test.py
$ SAML_ENV=config_local FLASK_DEBUG=1 FLASK_APP=demosp.py flask run --port=4567
openssl req -newkey rsa:2048 -nodes -keyout config/certs/sp.key \
-x509 -out config/certs/sp.crt -config config/openssl.conf