Support unsetting `jwks_uri` from `.well-known/openid-configuration` endpoint
Author: David-WobrockCreated Sep 26, 2025Updated Sep 27, 2026
Labelsfeatstale
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
The well-known openid config endpoint always returns a jwks_uri key.
Some OAuth2 clients will fetch it.
However, when you only issue opaque tokens, and no id_token, it's unnecessary to have a jwks_uri specified.
Describe your ideal solution
A way to unset this key, or to make the value null.
There already is a jwks_url key in the Hydra config: https://github.com/ory/hydra/blob/1a40833e2c87c98541d053f7c54b38f791dbb448/driver/config/provider.go#L452-L454
But if it's not a valid URL, it will fallback onto the issuer URL defined in our Hydra config.
Ideally, there would be a way to remove this key entirely.
Workarounds or alternatives
None found so far.
Version
2.3.0
Additional Context
No response
Source: ory/hydra