OpenIdConnectConfigurationService.GetOpenIdConnectConfigurationAsync: missing support for JWK client secret #408
-
|
We try to upgrade to Duende.AccessTokenManagement v4, but experience problems in our client assertion flow. We call Did we set this up incorrectly, or is support for JWKs overlooked? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In v4, some things have moved around, so your previous way to configure the client probably trips the new validation rule we have on the client secret. In short, you should not set the Here's a sample that shows this exact setup. |
Beta Was this translation helpful? Give feedback.
In v4, some things have moved around, so your previous way to configure the client probably trips the new validation rule we have on the client secret.
In short, you should not set the
ClientSecretproperty when configuring an OpenID Connect client using client assertion to authenticate. In theClientAssertionServiceimplementation, you still need to inject the JWK, but from configuration or a customIOptions<...>instead of retrieving it from theOpenIdConnectOptions.ClientSecretproperty.Here's a sample that shows this exact setup.