Skip to content

inbaytech/example-ruby-sinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby/Sinatra example of idQ Authentication

This repository demonstrates how to integrate idQ authentication into your Ruby/Sinatra web application.

Prerequisites

  1. You need to have an idQ Developer account (https://inbaytech.com)
  2. Login to your Account Portal and issue OAuth2 credentials for the demo app. See https://inbaytech.com for instructions on issuing OAuth2 credentials.
  3. Specify http://127.0.0.1:8123/oauthcallback as the Callback URL when creating your OAuth2 credentials.

Usage

  1. Clone this repository
  2. Configure your OAuth2 Credentials in app.rb
@idq = IdQClient.new('YOUR_CLIENT_ID',
                     'YOUR_CLIENT_SECRET',
                     'http://127.0.0.1:8123/oauthcallback'
)
  1. Install dependencies bundle install
  2. Start the application ./run.sh
  3. Navigate to http://localhost:8123 and try to access the Secure Page

About

Example of idQ Authentication with a Ruby / Sinatra web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors