0.0
No commit activity in last 3 years
No release in over 3 years
Omniauth strategy for Planning Center Online
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

OmniAuth for Planning Center Online (PCO)

OmniAuth for Planning Center Online's API.

How To Use It

Add this gem to your Gemfile:

gem 'omniauth-pco', git: 'git://github.com/emersonian/omniauth-pco.git'

Add the following to your config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :pco, 'consumer_key', 'consumer_secret', scope: 'people'
end

NOTE: If you are using Devise, add this instead to your config/initializers/devise.rb

config.omniauth :pco, ENV['PCO_OAUTH2_KEY'], ENV['PCO_OAUTH2_SECRET'], scope: 'people'

Set the PCO_OAUTH2* environmental variables to your key and secret, which you can obtain from https://api.planningcenteronline.com

Todo

  • Example project
  • Tests