From 273592f15be944f07bfebaf3b863487103fe40a6 Mon Sep 17 00:00:00 2001 From: Mark Haussmann Date: Tue, 28 Mar 2023 21:16:27 +1300 Subject: [PATCH] Fix add auth_scheme to options Fixes #28 Adds auth_scheme to options to support version 2.0 of OAuth2 gem --- lib/myob/api/client.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/myob/api/client.rb b/lib/myob/api/client.rb index bfa1c35..74dbf77 100644 --- a/lib/myob/api/client.rb +++ b/lib/myob/api/client.rb @@ -20,6 +20,7 @@ def initialize(options) :site => 'https://secure.myob.com', :authorize_url => '/oauth2/account/authorize', :token_url => '/oauth2/v1/authorize', + :auth_scheme => :request_body }) # on client init, if we have a company file already, get the appropriate base URL for this company file from MYOB