Ruby on Rails

Version 1.0 Released November 18, 2021 View changelog View on Github

This is a sample seed Ruby Web App built with Sinatra

You will need an ID.me developer account to complete this process

Prerequisites

You must have ruby and rubygems installed

Installation

1

Download the code

2

Reach out to your ID.me solution consultant for access to the code

3

Install the required gems

$bundle install
4

Configure your OAuth settings in oauth_controller.rb with the values provided in your developer account

1CLIENT_ID = "YOUR_CLIENT_ID"
2CLIENT_SECRET = "YOUR_CLIENT_SECRET"
3redirect_uri = "YOUR_REDIRECT_URI"
5

Configure OAuth settings in index.haml

1data-client-id = "[YOUR_CLIENT_ID]"
2data-redirect = "[YOUR_REDIRECT_URI]"
3data-scope = "[SCOPES]"
6

Start the server

$rails server

Steps for successful verification

1

Select the Verify with ID.me button

2

Complete the user flow

3

Allow the release of data

4

View success messaging

Steps for unsuccessful verification

1

Select the Verify with ID.me button

2

Complete the user flow

3

Deny the release of data

4

View error messaging