[oidc] pass httpClient to the TokenIdentity context (#4223)

Signed-off-by: Vasily Maryutenkov <vasily.maryutenkov@flant.com>
This commit is contained in:
Vasily Maryutenkov
2025-07-18 10:29:53 +02:00
committed by GitHub
parent 7208747072
commit 67b4228595
+3
View File
@@ -420,6 +420,9 @@ func (c *oidcConnector) Refresh(ctx context.Context, s connector.Scopes, identit
func (c *oidcConnector) TokenIdentity(ctx context.Context, subjectTokenType, subjectToken string) (connector.Identity, error) {
var identity connector.Identity
ctx = context.WithValue(ctx, oauth2.HTTPClient, c.httpClient)
token := &oauth2.Token{
AccessToken: subjectToken,
TokenType: subjectTokenType,