Loss of access to "kid" header to determine which key to use. #122
Replies: 1 comment
-
First of all, this is not appropriate for a bug issue template, there is no bug, just lack of effort to look for an already existing (see below) solution. So i'm going to close.
Not going to do that, decoding a JWT is a trivial job that you're free to do on your own.
The |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
In version 2 of this library, I was able to access the
kid
claim of a JWT to determine which key was used to sign it like so:jwt.header["kid"] ?? jwt.payload["kid"]
, but now I cannot access the payload of a JWT without first verifying it (which involves a key).Expected behaviour
Either allow un-verified access to the contents of a JWT, and/or implement a feature that allows a JWK set to be supplied as an argument to
verifyJWT()
and identify the correct key to use for verification.Environment:
jose
version: 3.1.3Additional context
jose
too.Beta Was this translation helpful? Give feedback.
All reactions