Ensure ClientSecrets uses googleauth extensions (#814)

This commit is contained in:
Daniel Azuma 2019-07-29 10:40:52 -07:00 committed by GitHub
parent 75606c6ca6
commit b314e0df2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -13,6 +13,7 @@
# limitations under the License.
require 'json'
require 'googleauth'
module Google
@ -147,8 +148,6 @@ module Google
end
def to_authorization
gem 'signet', '>= 0.4.0'
require 'signet/oauth_2/client'
# NOTE: Do not rely on this default value, as it may change
new_authorization = Signet::OAuth2::Client.new
new_authorization.client_id = self.client_id