- changed status to open
problem with audience value if the value is not a list or an array
Issue #236
resolved
when calling the "toJSONObject()" method of JWTClaimsSet the "aud" value is omitted from the content if the content is a single value that does not represent a list or an array. I got a screenshot that displays the problem clearly
Comments (5)
-
-
- changed status to resolved
Fixed in commit bc68e90
-
The fix will be on Maven Central as v4.41.2 within an hour or so
-
reporter thx for the fast fix. Actually this bug laid a bug in my implementation open which is the only reason why I have found it :-)
-
I see. I suppose the client code was setting the "aud" claim via the generic
JWTClaimsSet.setClaim("aud", "value")
instead of the dedicated.setAudience
, which applies proper canonicalisation. Output will work either way now. - Log in to comment
Thanks for spotting this! Will add a test and get it fixed.