mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fixing another 1.8.7 bug.
This commit is contained in:
parent
5bf059589b
commit
9afd53e683
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ module Fog
|
||||||
:application_name => "fog",
|
:application_name => "fog",
|
||||||
:application_version => Fog::VERSION,
|
:application_version => Fog::VERSION,
|
||||||
})
|
})
|
||||||
@client.authorization = Signet::OAuth2::Client.new(
|
@client.authorization = Signet::OAuth2::Client.new({
|
||||||
:audience => 'https://accounts.google.com/o/oauth2/token',
|
:audience => 'https://accounts.google.com/o/oauth2/token',
|
||||||
:auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs",
|
:auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs",
|
||||||
:client_x509_cert_url => "https://www.googleapis.com/robot/v1/metadata/x509/#{google_client_email}",
|
:client_x509_cert_url => "https://www.googleapis.com/robot/v1/metadata/x509/#{google_client_email}",
|
||||||
|
@ -91,7 +91,7 @@ module Fog
|
||||||
:scope => api_scope_url,
|
:scope => api_scope_url,
|
||||||
:signing_key => key,
|
:signing_key => key,
|
||||||
:token_credential_uri => 'https://accounts.google.com/o/oauth2/token',
|
:token_credential_uri => 'https://accounts.google.com/o/oauth2/token',
|
||||||
)
|
})
|
||||||
@client.authorization.fetch_access_token!
|
@client.authorization.fetch_access_token!
|
||||||
|
|
||||||
@compute = @client.discovered_api('compute', api_version)
|
@compute = @client.discovered_api('compute', api_version)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue