Skip to content

Ruby OIDC Sample Code

Notifications You must be signed in to change notification settings

IDme/ruby-oidc-sample-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ID.me Sample Ruby Web App

This is a sample OpenID Connect seed Ruby Web App built with Sinatra

Installation and Setup

In order to run the example you need to have ruby and rubygems installed.

First, install the required gems

gem install sinatra gem install rackup gem install oauth2 gem install httparty

Next, configure your oauth settings in app.rb

app.rb

client_id     = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"
scope         = "YOUR_SCOPE_VALUE"

Run the following command: ruby app.rb

Start the server and view the app at http://localhost:4567

Releases

No releases published

Packages

No packages published

Languages