8000 fix(cba): Update newAuth path to use nil oauth2 client (#2684) · googleapis/google-api-go-client@d925dcb · GitHub
[go: up one dir, main page]

Skip to content

Commit d925dcb

Browse files
authored
fix(cba): Update newAuth path to use nil oauth2 client (#2684)
1 parent 1e3757d commit d925dcb

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

transport/grpc/dial.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,6 @@ func dialPoolNewAuth(ctx context.Context, secure bool, poolSize int, ds *interna
218218
defaultEndpointTemplate = ds.DefaultEndpoint
219219
}
220220

221-
tokenURL, oauth2Client, err := internal.GetOAuth2Configuration(ctx, ds)
222-
if err != nil {
223-
return nil, err
224-
}
225-
226221
pool, err := grpctransport.Dial(ctx, secure, &grpctransport.Options{
227222
DisableTelemetry: ds.TelemetryDisabled,
228223
DisableAuthentication: ds.NoAuth,
@@ -237,8 +232,6 @@ func dialPoolNewAuth(ctx context.Context, secure bool, poolSize int, ds *interna
237232
Audience: aud,
238233
CredentialsFile: ds.CredentialsFile,
239234
CredentialsJSON: ds.CredentialsJSON,
240-
TokenURL: tokenURL,
241-
Client: oauth2Client,
242235
},
243236
InternalOptions: &grpctransport.InternalOptions{
244237
EnableNonDefaultSAForDirectPath: ds.AllowNonDefaultServiceAccount,

transport/http/dial.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ func newClientNewAuth(ctx context.Context, base http.RoundTripper, ds *internal.
107107
if ds.RequestReason != "" {
108108
headers.Set("X-goog-request-reason", ds.RequestReason)
109109
}
110-
tokenURL, oauth2Client, err := internal.GetOAuth2Configuration(ctx, ds)
111-
if err != nil {
112-
return nil, err
113-
}
114110
client, err := httptransport.NewClient(&httptransport.Options{
115111
DisableTelemetry: ds.TelemetryDisabled,
116112
DisableAuthentication: ds.NoAuth,
@@ -125,8 +121,6 @@ func newClientNewAuth(ctx context.Context, base http.RoundTripper, ds *internal.
125121
Audience: aud,
126122
CredentialsFile: ds.CredentialsFile,
127123
CredentialsJSON: ds.CredentialsJSON,
128-
TokenURL: tokenURL,
129-
Client: oauth2Client,
130124
},
131125
InternalOptions: &httptransport.InternalOptions{
132126
EnableJWTWithScope: ds.EnableJwtWithScope,

0 commit comments

Comments
 (0)
0