This gem provides a dead simple way to authenticate to StitchLabs using OmniAuth.
To use it, you'll need to sign up for an OAuth2 Application ID and Secret on the StitchLabs Developer Page.
Add this line to your application's Gemfile:
gem 'omniauth-stitchlabs', github: 'julionc/omniauth-stitchlabs'
And then execute:
$ bundle
Then integrate the strategy into your Ruby middleware:
use OmniAuth::Builder do
provider :stitchlabs, ENV['STITCHLABS_CLIENT_ID'], ENV['STITCHLABS_CLIENT_SECRET']
end
You need to add the following to your config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :stitchlabs, ENV['STITCHLABS_CLIENT_ID'], ENV['STITCHLABS_CLIENT_SECRET']
end
For additional information, refer to the OmniAuth wiki.
Copyright (c) 2016 Julio Napurí