Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.
/ identity-saml-python Public archive

An example service provider (SP) written in python that integrates with 18F's identity-idp

License

Notifications You must be signed in to change notification settings

18F/identity-saml-python

Repository files navigation

Warning:

This sample SP has been retired. It was used for early prototyping for integrations with login.gov and has not been maintained. It has confirmed vulnerabilities and should not be used for production itegrations.

For maintained examples of SAML integrations with login.gov please refer to:

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

About

An example service provider (SP) written in python that integrates with 18F's identity-idp

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •