by davis_m · 9y ago · 0 comments
For example, both of these decoded headers are equivalent:
{ "alg": "HS256", "typ": "JWT" }
{ "typ": "JWT", "alg": "HS256" }
Obviously, these encode to two different values. If you reattach the wrong one, signature verification will fail.
Disclaimer: I maintain a Python JOSE library and have had to answer questions related to this on more than one occasion.
No comments yet.