Sha256: e2a765e2b269402edc144f616da297c455af2e6597181f87e20a86cdc1f3e653
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# OmniAuth GoCardless OAuth2 [![Gem Version](https://badge.fury.io/rb/omniauth-gocardless-oauth2.svg)](http://badge.fury.io/rb/omniauth-gocardless-oauth2) Strategy to authenticate [GoCardless](https://www.gocardless.com) 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. ```ruby 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 - [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet)) ## License OmniAuth GoCardless OAuth2 is released under the MIT license. See the LICENSE file for more info.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-gocardless-oauth2-1.0.0 | README.md |