We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c07bca commit 35e8dd5Copy full SHA for 35e8dd5
credentials/google/google.go
@@ -30,6 +30,8 @@ import (
30
"google.golang.org/grpc/internal"
31
)
32
33
+const defaultCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
34
+
35
var logger = grpclog.Component("credentials")
36
37
// DefaultCredentialsOptions constructs options to build DefaultCredentials.
@@ -120,7 +122,7 @@ var (
120
122
return alts.NewClientCreds(alts.DefaultClientOptions())
121
123
}
124
newADC = func(ctx context.Context) (credentials.PerRPCCredentials, error) {
- return oauth.NewApplicationDefault(ctx)
125
+ return oauth.NewApplicationDefault(ctx, defaultCloudPlatformScope)
126
127
128
0 commit comments