An example service provider (SP) written in python that integrates with 18F's identity-idp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
config
config_local
static
templates
.gitignore
LICENSE.md
Makefile
README.md
demosp.py
demosp_test.py
requirements.txt

README.md

Sample Python SP

Build Status

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.

Setup

$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Testing

$ python demosp_test.py

Running (development mode)

$ SAML_ENV=config_local FLASK_DEBUG=1 FLASK_APP=demosp.py flask run --port=4567

Generating a new key + self-signed cert

openssl req -newkey rsa:2048 -nodes -keyout config/certs/sp.key \
  -x509 -out config/certs/sp.crt -config config/openssl.conf