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:
Mock service provider (SP) app for validating IdP and IdV APIs.
May also function as reference Service Provider implementation.
These instructions assume identity-idp
is also running locally at http://localhost:3000
. This sample sp is configured to run on http://localhost:3003
.
$ make setup
$ make test
$ SAML_ENV=local make run
$ cf target -o sandbox
$ cf create-service rds shared-psql id-sp-rails_production-dev
$ cf push -f manifest_dev.yml
(see, for reference https://docs.cloud.gov/apps/databases/ and https://docs.cloud.gov/getting-started/one-off-tasks/)
$ cap [demo, dev, or tf] deploy
$ cap -T # for a list of available capistrano tasks
openssl req -days 3650 -newkey rsa:2048 -nodes -keyout keys/saml_test_sp.key \
-x509 -out certs/sp/demo_sp.crt -config config/openssl.conf
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.