The library does not check the situation if signature algorithm is defined but no signature is provided
dmak opened this issue · 2 comments
dmak commented
Please doublecheck this is a valid issue. According to JWS §4.1.1 "alg" Header Parameter MUST be present and MUST be understood and processed by implementations.
In my opinion that means that if "alg" is not "none", then signature must be present and verified. Attached
JwtTest.java.txt demonstrates the problem.
robotdan commented
Hi @dmak ,
You are correct, this is not the intended behavior, I thought I had a test that covered this scenario. I added your test and resolved the issue.
Thanks for pointing this out.
robotdan commented
Resolved in version 1.3.0