Skip to content

Conversation

@Ali-HENDA
Copy link
Contributor

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix
License MIT

This PR fixes an issue in the OIDC JWKS discovery logic revealed in the discussion of #62369.
$client->stream() was used incorrectly:
$client could be undefined, and responses must be streamed using the same client instance that created them, which breaks when multiple HttpClientInterface instances are configured.
The logic now performs sequential discovery per client, avoiding cross-client streaming and ensuring correctness.

This PR also hardens the "use" check ($key['use'] ?? null).

@Ali-HENDA Ali-HENDA force-pushed the fix/oidc-jwks-streaming branch from 561d8b4 to 7c7b38b Compare November 24, 2025 15:41
@Ali-HENDA Ali-HENDA force-pushed the fix/oidc-jwks-streaming branch from 7c7b38b to 7a885d2 Compare November 24, 2025 15:47
@nicolas-grekas
Copy link
Member

Thank you @Ali-HENDA.

@nicolas-grekas nicolas-grekas merged commit ea169db into symfony:7.4 Dec 5, 2025
12 checks passed
This was referenced Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants