#4029·hydra

Support unsetting `jwks_uri` from `.well-known/openid-configuration` endpoint

Author: David-WobrockCreated Sep 26, 2025Updated Sep 27, 2026
Labelsfeatstale

Preflight checklist

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