mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
[oidc] pass httpClient to the TokenIdentity context (#4223)
Signed-off-by: Vasily Maryutenkov <vasily.maryutenkov@flant.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user