Skip to content

Commit

Permalink
Add email scope to driver
Browse files Browse the repository at this point in the history
  • Loading branch information
nywilken committed Jul 25, 2022
1 parent 5e836f1 commit 757a86c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builder/googlecompute/driver_gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ type GCEDriverConfig struct {
VaultOauthEngineName string
}

var DriverScopes = []string{"https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.full_control"}
var DriverScopes = []string{
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/devstorage.full_control",
}

// Define a TokenSource that gets tokens from Vault
type OauthTokenSource struct {
Expand Down

0 comments on commit 757a86c

Please # to comment.