No commit activity in last 3 years
No release in over 3 years
OmniAuth Strategy for GoCardless via OAuth2
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 GoCardless OAuth2

Gem Version

Strategy to authenticate GoCardless in OmniAuth.

Installation

OmniAuth GoCardless OAuth2 is distributed as a gem, which is how it should be used in your app.

Include the gem in your Gemfile:

gem 'omniauth-gocardless-oauth2', '~> 1.0'

Integrate this strategy to your OmniAuth middleware.

Rails.application.config.middleware.use OmniAuth::Builder do
	if Rails.env.production?
		provider :gocardless, ENV['GOCARDLESS_KEY'], ENV['GOCARDLESS_SECRET'], scope: 'read_only', initial_view: 'login'
	else
		provider :gocardless, ENV['GOCARDLESS_KEY'], ENV['GOCARDLESS_SECRET'], scope: 'read_only', initial_view: 'login', client_options: { site: "https://connect-sandbox.gocardless.com" }
	end
end

Author

License

OmniAuth GoCardless OAuth2 is released under the MIT license. See the LICENSE file for more info.