commit
a2b59eb836
|
@ -36,8 +36,8 @@ $ gem install googleauth
|
||||||
require 'googleauth'
|
require 'googleauth'
|
||||||
|
|
||||||
# Get the environment configured authorization
|
# Get the environment configured authorization
|
||||||
scope = 'https://www.googleapis.com/auth/userinfo.profile'
|
scopes = ['https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/compute']
|
||||||
authorization = Google::Auth.get_application_default(scope)
|
authorization = Google::Auth.get_application_default(scopes)
|
||||||
|
|
||||||
# Add the the access token obtained using the authorization to a hash, e.g
|
# Add the the access token obtained using the authorization to a hash, e.g
|
||||||
# headers.
|
# headers.
|
||||||
|
|
Loading…
Reference in New Issue