-
It seems that the So how to parse a given JWT in compact base64 form and get the header fields? Espacially the |
Beta Was this translation helpful? Give feedback.
Answered by
lestrrat
Jul 2, 2021
Replies: 1 comment
-
@schuerg I'm going to take a wild guess, but I think you are confusing JWT and JWS. JWT may arrive to you in signed format, but at that point it's a JWS message. Header fields like |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lestrrat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@schuerg I'm going to take a wild guess, but I think you are confusing JWT and JWS. JWT may arrive to you in signed format, but at that point it's a JWS message. Header fields like
alg
andkid
only exist in the JWS message. So if you want to manually do something with the JWS headers, you should be looking atjws.Parse