Replies: 2 comments
-
I'm not convinced this is widely used/needed enough which is why I didn't include it in the 6.x redesign. My thought on this was, and so my suggestion is, that users who need it would manage the encryption of the request object themselves. jwks are not loaded for majority of v6.x use so you're good to load them with fetch yourself and encrypt with jose.CompactEncrypt |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I see that it is probably not a widely used feature of OIDC. I should've mentioned that we operate in a context that mandates verifying the ID Token signature so the library will load the JWKS. Anyway, it's not a major issue, we will continue with manual encryption and JWKS handling. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on an authentication service that utilizes OIDC and have found openid-client very useful in simplifying the server-side implementation. There is one feature, however, that I would like to see added: Encrypted Request Object.
This option is specified in the OpenID Connect Core document section 6.3.1
https://openid.net/specs/openid-connect-core-1_0.html#EncryptedRequestObject
Here is a short snippet of how our implementation roughly looks:
The main issue is obtaining the JWKS (and maybe caching it). Since openid-client internally handles getting and caching the JWKS from the Authorization Server I would like to see this feature implemented to prevent having to maintain a "separate" JWKS cache for this purpose. Maybe this could be implemented as a discovery request option
enableRequestObjectEncryptionsimilar asenableNonRepudiationChecks, or as an explicit parameter in thebuildAuthorizationUrlWithJARmethod.Perhaps an alternate feature would be a method that returns a fresh JWKS cache. I found the
getJwksCachemethod, but I think it returnsundefinedif the cache hasn't been populated yet (which it probably isn't when first callingbuildAuthorizationUrlWithJAR).Any thoughts or suggestions?
Beta Was this translation helpful? Give feedback.
All reactions