Skip to content

johnvuko/omniauth-gocardless-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

OmniAuth Strategy for GoCardless via OAuth2

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages