Skip to content

Installation and basic usage

Alexander Keramidas edited this page Jun 28, 2017 · 5 revisions

If you are familiar with OmniAuth gems, all you need to do is install and declare Authentiq in the omniauth.rb initializer.

Installation

Add this line to your application's Gemfile

gem 'omniauth-authentiq', '~> 0.3.0'

Then bundle:

$ bundle install

Basic Usage with Rails

use OmniAuth::Builder do
  provider :authentiq, ENV['AUTHENTIQ_KEY'], ENV['AUTHENTIQ_SECRET'],
           scope: 'aq:name email~rs aq:push'
end

This should get you up and running quickly.

However if you want more information, you can continue reading to the next chapter about available scopes, callback url configuration and response examples.