You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the code runs in a multi-tenant mode, the jwt_key_p_t is hard to write because we always need to know which context we should get the code from. So, could we add a new decode method like the following:
I can certainly see the usefulness of this given the currently available functions. However, I really want to move away from this naming and calling convention.
With the new JWK and JWKS support in the master branch coming together nicely, my plan is to have a more robust way to verify and validate (and even decrypt) tokens, and not "decode", as the current function naming implies (it's very confusing to people).
So while I do not intend to to implement jwt_decode_3(), I do intend to to provide the functionality you're looking for.
benmcollins
changed the title
jwt_decode_2/jwt_key_p_t does not support context
LibJWT needs a robust way to handle keys with various provider and client contexts (i.e. JWKS)
Dec 18, 2024
In the current design, we have the following prototypes:
If the code runs in a multi-tenant mode, the
jwt_key_p_t
is hard to write because we always need to know which context we should get the code from. So, could we add a new decode method like the following:If you think the suggestion is valuable, I could provide a patch.
Thanks
The text was updated successfully, but these errors were encountered: