This commit is contained in:
Nat Welch 2013-03-12 16:52:21 -07:00
Родитель 5bf059589b
Коммит 9afd53e683
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -83,7 +83,7 @@ module Fog
:application_name => "fog",
:application_version => Fog::VERSION,
})
@client.authorization = Signet::OAuth2::Client.new(
@client.authorization = Signet::OAuth2::Client.new({
:audience => 'https://accounts.google.com/o/oauth2/token',
: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}",
@ -91,7 +91,7 @@ module Fog
:scope => api_scope_url,
:signing_key => key,
:token_credential_uri => 'https://accounts.google.com/o/oauth2/token',
)
})
@client.authorization.fetch_access_token!
@compute = @client.discovered_api('compute', api_version)