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
- Host: GitHub
- URL: https://github.com/johnvuko/omniauth-gocardless-oauth2
- Owner: johnvuko
- License: mit
- Created: 2016-09-15T12:40:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T13:13:00.000Z (over 6 years ago)
- Last Synced: 2025-10-08T01:18:38.027Z (9 months ago)
- Topics: gocardless, oauth, omniauth
- Language: Ruby
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# OmniAuth GoCardless OAuth2
[](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.