Skip to content

Commit 685784e

Browse files
authored
fix(auth): pass through client to 2LO and 3LO flows (#10290)
This is especially important for mtls where clients need to be overridden to include certs
1 parent 430ce8a commit 685784e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auth/credentials/filetypes.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func handleServiceAccount(f *credsfile.ServiceAccountFile, opts *DetectOptions)
137137
Scopes: opts.scopes(),
138138
TokenURL: f.TokenURL,
139139
Subject: opts.Subject,
140+
Client: opts.client(),
140141
}
141142
if opts2LO.TokenURL == "" {
142143
opts2LO.TokenURL = jwtTokenURL
@@ -154,6 +155,7 @@ func handleUserCredential(f *credsfile.UserCredentialsFile, opts *DetectOptions)
154155
AuthStyle: auth.StyleInParams,
155156
EarlyTokenExpiry: opts.EarlyTokenRefresh,
156157
RefreshToken: f.RefreshToken,
158+
Client: opts.client(),
157159
}
158160
return auth.New3LOTokenProvider(opts3LO)
159161
}

0 commit comments

Comments
 (0)