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

Test Service Provider for the Identity project

License

Notifications You must be signed in to change notification settings

18F/identity-saml-rails

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:

Identity-SP

CircleCI Code Climate Test Coverage security

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.

Setup

$ make setup

Testing

$ make test

Running

$ SAML_ENV=local make run

Deploy to your cloud.gov sandbox

$ 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/)

Deploy to login.gov lower envs

$ cap [demo, dev, or tf] deploy
$ cap -T # for a list of available capistrano tasks

Generating a new key + self-signed cert

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

Public domain

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.

About

Test Service Provider for the Identity project

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published