SermoDigital/jose

How to parse all three parts: header, payload, signature?

mcandre opened this issue · 1 comments

As a developer, I want to be able to easily access each of the three parts of a "JWT": the header, and the payload, as well as the signature bits, as described in various JWT documentation.

https://jwt.io/

jose appears to call the payload portion of JWT's, "JWT", and present the rest of these pieces as "JWS". Furthermore, jose does not make it easy to obtain both the header and the payload, as the existing parser methods only yield one or the other of these attributes. And the payload structure does not appear to nest within the "JWS".

As a workaround, I might end up having to parse my token twice :P

I am having the same issue. I need to know the "kid" which is in the header. :(