Skip to content

Include /.well-known/jwks in the paths covered by OpenIddict #19749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Jul 17, 2025

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #19652

Description

#16549 (and the subsequent #16845) causes the linked issue. In essence, the ProcessRequestContextHandler from those PRs prevents OpenIddict from handling /.well-known/jwks, ultimately leading to a 404 response.

This PR fixes it by adding /.well-known/jwks to the allow-list of paths inProcessRequestContextHandler.

Testing this PR

First and foremost, verify that /.well-known/openid-configuration still works, and that the jwks_uri property in the response contains "[host]/.well-known/jwks" (it should remain unaffected by this PR).

Now verify that /.well-known/jwks also works 👍

@lauraneto lauraneto merged commit 71df46c into main Jul 18, 2025
26 checks passed
@lauraneto lauraneto deleted the v16/bugfix/well-known-jwks branch July 18, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V14,V15,V16 problem with openid configuration Content Delivery API (lack a file .well-known/jwks)
2 participants