Skip to content

Commit 3512c72

Browse files
otakakotlivio-a
andauthored
fix: to propagate context (#593)
Co-authored-by: Livio Spring <[email protected]>
1 parent 79daaf1 commit 3512c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/rp/jwks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (r *remoteKeySet) fetchRemoteKeys(ctx context.Context) ([]jose.JSONWebKey,
217217
ctx, span := client.Tracer.Start(ctx, "fetchRemoteKeys")
218218
defer span.End()
219219

220-
req, err := http.NewRequest("GET", r.jwksURL, nil)
220+
req, err := http.NewRequestWithContext(ctx, "GET", r.jwksURL, nil)
221221
if err != nil {
222222
return nil, fmt.Errorf("oidc: can't create request: %v", err)
223223
}

0 commit comments

Comments
 (0)