Skip to content

Commit a58a8f9

Browse files
authored
Merge pull request #169 from pisto/service-account-key-fix-oauth-scope
Request the correct OAuth scopes when using service account keys.
2 parents 52c6029 + 45cf2ab commit a58a8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func watchNamespaces() error {
7979

8080
// grab credentials from where GCP would normally look
8181
ctx := context.Background()
82-
creds, err := google.FindDefaultCredentials(ctx)
82+
creds, err := google.FindDefaultCredentials(ctx, "https://www.googleapis.com/auth/cloud-platform")
8383
if err != nil {
8484
return fmt.Errorf("finding default credentials: %v", err)
8585
}

0 commit comments

Comments
 (0)