Example OpenID Connect relying party as a Sinatra app
Branch: master
Clone or download
stevegsa LG-835 Add LOA3 to Open ID Connect Sinatra Test App (#47)
* LG-835 Add LOA3 to Open ID Connect Sinatra Test App
Latest commit b16cea7 Jan 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
config Create extremely bare-bones OpenID Connect Sinatra RP Feb 9, 2017
deploy Add deploy/activate script to download .env from S3 Sep 29, 2017
public Added basscss (#3) Mar 16, 2017
spec Update Rubocop config and fix violations Apr 11, 2018
views LG-835 Add LOA3 to Open ID Connect Sinatra Test App (#47) Jan 28, 2019
.env.example Add support for the RP-initiated logout (#19) May 19, 2017
.gitignore Add config files (#5) Mar 17, 2017
.reek
.rubocop.yml Update Rubocop config and fix violations Apr 11, 2018
.ruby-version Upgrade to ruby 2.3.5 Sep 20, 2017
CONTRIBUTING.md
Gemfile Update Rubocop config and fix violations Apr 11, 2018
Gemfile.lock Update webmock from 3.2.1 to 3.3.0 Apr 11, 2018
LICENSE.md Add README, CONTRIBUTING, LICENSE per 18f guidelines Feb 9, 2017
Makefile Set up TravisCI, rubocop, reek (#7) Mar 17, 2017
README.md Set up TravisCI, rubocop, reek (#7) Mar 17, 2017
app.rb LG-835 Add LOA3 to Open ID Connect Sinatra Test App (#47) Jan 28, 2019
config.ru Update Rubocop config and fix violations Apr 11, 2018

README.md

identity-openidconnect-sinatra

An example of a Relying Party for OpenID Connect written as a simple Sinatra app in Ruby.

Running locally

These instructions assume identity-idp is also running locally at http://localhost:3000. This sample sp is configured to run on http://localhost:9292.

  1. Set up the environment with:
$ make setup
  1. And run the app server:
$ make run
  1. To run specs:
$ make test

Contributing

See CONTRIBUTING for additional information.

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.