An open API service indexing awesome lists of open source software.

https://github.com/johnvuko/omniauth-gocardless-oauth2

OmniAuth Strategy for GoCardless via OAuth2
https://github.com/johnvuko/omniauth-gocardless-oauth2

gocardless oauth omniauth

Last synced: 4 months ago
JSON representation

OmniAuth Strategy for GoCardless via OAuth2

Awesome Lists containing this project

README

          

# 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 VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johnvuko](https://twitter.com/johnvuko))

## License

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