For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact UsSign In
HomeIntegrationsGuidesBrand Assets
HomeIntegrationsGuidesBrand Assets
  • Supported Applications
    • Overview
    • Shopify
    • Azure
  • Configurations
    • Overview
    • Configuration Standards
  • Deploy and Monitor
    • Overview
    • Quality Assurance Testing
    • Launching in Production
    • Monitoring Performance
    • Conversion Tracking
    • Help
  • Sample Code
    • Overview
      • Python
      • PHP
      • Ruby
      • Ruby on Rails
      • React Axios
      • JavaScript
      • jQuery
      • OIDC Ruby
  • Terms of Service
    • Developers
    • Partners
LogoLogo
Contact UsSign In
On this page
  • Prerequisites
  • Installation
  • Steps for successful verification
  • Steps for unsuccessful verification
Sample CodeOptions

Ruby on Rails

Was this page helpful?
Edit this page
Previous

React Axios

Next
Built with

Version 1.0 Released November 18, 2021

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