fix: to propagate context (#593)

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Kotaro Otaka 2024-04-22 20:40:21 +09:00 committed by GitHub
parent 79daaf1a7a
commit 3512c72f1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,7 +217,7 @@ func (r *remoteKeySet) fetchRemoteKeys(ctx context.Context) ([]jose.JSONWebKey,
ctx, span := client.Tracer.Start(ctx, "fetchRemoteKeys")
defer span.End()
req, err := http.NewRequest("GET", r.jwksURL, nil)
req, err := http.NewRequestWithContext(ctx, "GET", r.jwksURL, nil)
if err != nil {
return nil, fmt.Errorf("oidc: can't create request: %v", err)
}