Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Latest commit

 

History

History
48 lines (31 loc) · 1.02 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.02 KB

OmniAuth::StitchLabs

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.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-stitchlabs', github: 'julionc/omniauth-stitchlabs'

And then execute:

$ bundle

Usage

Then integrate the strategy into your Ruby middleware:

Ruby Middleware

use OmniAuth::Builder do
  provider :stitchlabs, ENV['STITCHLABS_CLIENT_ID'], ENV['STITCHLABS_CLIENT_SECRET']
end

With Rails

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.

License

Copyright (c) 2016 Julio Napurí