Sha256: 957569c5ad4cfe523d2b4e0100c6df26a846035ad637e97ea9f73b258535f7e0
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Gocardless < OmniAuth::Strategies::OAuth2 option :name, "gocardless" option :client_options, { :site => "https://connect.gocardless.com", :authorize_url => '/oauth/authorize', :token_url => '/oauth/access_token' } uid { access_token.params['organisation_id'] } # Required for omniauth-oauth2 >= 1.4 # https://github.com/intridea/omniauth-oauth2/issues/81 def callback_url full_host + script_name + callback_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-gocardless-oauth2-1.0.0 | lib/omniauth/strategies/gocardless.rb |