Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google|compute] auth needs additional scope to insert images #2533

Merged
merged 1 commit into from Mar 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/fog/google/compute.rb
Expand Up @@ -843,7 +843,9 @@ class Real

def initialize(options)
base_url = 'https://www.googleapis.com/compute/'
api_scope_url = 'https://www.googleapis.com/auth/compute'
# The devstorage scope is needed to be able to insert images
# devstorage.read_only scope is not sufficient like you'd hope
api_scope_url = 'https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.read_write'
shared_initialize(options)

google_client_email = options[:google_client_email]
Expand Down