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

julionc/omniauth-stitchlabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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í

About

StitchLabs strategy for OmniAuth

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages