Skip to content

Commit

Permalink
fix(internal/cba): Update credsNewAuth path to use nil oauth2 client (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aeitzman authored Aug 13, 2024
1 parent 2b4e9f4 commit b457582
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/creds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b457582

Please sign in to comment.