lib/omniauth/strategies/gocardless.rb in omniauth-gocardless-oauth2-1.0.0 vs lib/omniauth/strategies/gocardless.rb in omniauth-gocardless-oauth2-1.0.1

- old
+ new

@@ -1,25 +1,31 @@ require 'omniauth-oauth2' module OmniAuth module Strategies class Gocardless < OmniAuth::Strategies::OAuth2 - + option :name, "gocardless" - option :client_options, { + option :client_options, { :site => "https://connect.gocardless.com", :authorize_url => '/oauth/authorize', :token_url => '/oauth/access_token' } uid { access_token.params['organisation_id'] } + info do + { + email: access_token.params['email'] + } + end + # 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 \ No newline at end of file +end