No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for Everyday Hero's Passport
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

OmniAuth Passport

This gem contains the Everyday Hero Passport strategy for OmniAuth.

Experimental

This gem will only work if you have a copy of our OAuth2 server running locally on http://passport.edh.dev which you don't. Once we sort out the URL structure I will make a 1.0.0 release.

How To Use It

Usage is as per any other OmniAuth 2.0 strategy. Add the strategy to your Gemfile:

gem 'omniauth-passport', '~> 0.0.1'

After adding the gem you will need to bundle install and create config/initializers/omniauth.rb.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :passport, ENV['PASSPORT_KEY'], ENV['PASSPORT_SECRET']
end

The typical convention for key / secret pairs is storing them in an environment variable. Lots of tools (e.g. POW and Procfile) will source an environment file before loading which is a great place to put the environment variables.

Currently we are returning the user's name, email and uid.

For more information on hooking up omniauth check out the README at: https://github.com/intridea/omniauth