From b4575826c2262395659ab58cb3c7ecae991758c0 Mon Sep 17 00:00:00 2001 From: aeitzman <12433791+aeitzman@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:09:51 -0700 Subject: [PATCH] fix(internal/cba): Update credsNewAuth path to use nil oauth2 client (#2731) --- internal/creds.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/creds.go b/internal/creds.go index 4ed22bd76e7..4ebeb61c1a2 100644 --- a/internal/creds.go +++ b/internal/creds.go @@ -100,18 +100,12 @@ func credsNewAuth(ctx context.Context, settings *DialSettings) (*google.Credenti aud = settings.DefaultAudience } - tokenURL, oauth2Client, err := GetOAuth2Configuration(ctx, settings) - if err != nil { - return nil, err - } creds, err := credentials.DetectDefault(&credentials.DetectOptions{ Scopes: scopes, Audience: aud, CredentialsFile: settings.CredentialsFile, CredentialsJSON: settings.CredentialsJSON, UseSelfSignedJWT: useSelfSignedJWT, - TokenURL: tokenURL, - Client: oauth2Client, }) if err != nil { return nil, err