This repository demonstrates how to integrate idQ authentication into your Ruby/Sinatra web application.
- You need to have an idQ Developer account (https://inbaytech.com)
- Login to your Account Portal and issue OAuth2 credentials for the demo app. See https://inbaytech.com for instructions on issuing OAuth2 credentials.
- Specify http://127.0.0.1:8123/oauthcallback as the Callback URL when creating your OAuth2 credentials.
- Clone this repository
- Configure your OAuth2 Credentials in
app.rb
@idq = IdQClient.new('YOUR_CLIENT_ID',
'YOUR_CLIENT_SECRET',
'http://127.0.0.1:8123/oauthcallback'
)- Install dependencies
bundle install - Start the application
./run.sh - Navigate to http://localhost:8123 and try to access the Secure Page