Test Service Provider for the Identity project
Branch: master
Clone or download
monfresh Merge pull request #71 from 18F/snyk-fix-srhm87
[Snyk] Fix for 2 vulnerable dependencies
Latest commit 9395939 Nov 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Address all deprecation warnings in Rails 5.0.6 Mar 14, 2018
bin Update README / deploy instructions Dec 12, 2016
certs/sp Update x509 cert to expire in 10 years (#36) Aug 19, 2016
config Update Rails from 5.0.6 to 5.1.5 Mar 14, 2018
db Initial cut at full-featured user. (#26) Aug 10, 2016
keys Update x509 cert to expire in 10 years (#36) Aug 19, 2016
lib
log Basic boilerplate generated by `rails new` Jun 2, 2016
public Basic boilerplate generated by `rails new` Jun 2, 2016
spec
vendor/assets Add Omniauth login via IdP Jun 22, 2016
.codeclimate.yml Update Code Climate engines and fix offenses Jul 12, 2016
.csslintrc Update Code Climate engines and fix offenses Jul 12, 2016
.gitignore Add more agency pages Jul 15, 2016
.reek Add Reek and remove slim-lint from Makefile Jun 5, 2017
.rspec Feature tests for SAML workflow Jul 7, 2016
.rubocop.yml
.ruby-version Upgrade to Ruby 2.3.5. Sep 20, 2017
.scss-lint.yml
.snyk
CONTRIBUTING.md add LICENSE and CONTRIBUTING documents (#34) Aug 19, 2016
Capfile Address demo deploy restart of all apps (#40) Nov 3, 2016
Gemfile fix: Gemfile & Gemfile.lock to reduce vulnerabilities Nov 8, 2018
Gemfile.lock fix: Gemfile & Gemfile.lock to reduce vulnerabilities Nov 8, 2018
LICENSE.md add LICENSE and CONTRIBUTING documents (#34) Aug 19, 2016
Makefile Add Reek and remove slim-lint from Makefile Jun 5, 2017
README.md Inform reader of local idp dependency Dec 18, 2017
Rakefile Basic boilerplate generated by `rails new` Jun 2, 2016
circle.yml Upgrade ruby version in CircleCI Sep 20, 2017
config.ru Basic boilerplate generated by `rails new` Jun 2, 2016
manifest_dev.yml Update README / deploy instructions Dec 12, 2016
task_manifest.yml Update README / deploy instructions Dec 12, 2016

README.md

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.