Skip to content

Commit

Permalink
Add scope to oauth token for gcs backup storage client
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hebelka <[email protected]>
  • Loading branch information
Santiclause committed Dec 7, 2018
1 parent f2118cc commit 74c80dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/mysqlctl/gcsbackupstorage/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (bs *GCSBackupStorage) client(ctx context.Context) (*storage.Client, error)
// the creation context, so we create a new one, but
// keep the span information.
ctx = trace.CopySpan(context.Background(), ctx)
authClient, err := google.DefaultClient(ctx)
authClient, err := google.DefaultClient(ctx, storage.ScopeFullControl)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 74c80dd

Please sign in to comment.