Browse Source

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

Signed-off-by: Vasily Maryutenkov <vasily.maryutenkov@flant.com>
pull/4213/head
Vasily Maryutenkov 8 months ago committed by GitHub
parent
commit
67b4228595
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      connector/oidc/oidc.go

3
connector/oidc/oidc.go

@ -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,

Loading…
Cancel
Save