Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
Patch
Description
Hi,
Sadly WSO2 create invalid JW tokens with an "exp" field with millisecond resolution. According to the spec the field "exp" should only contain second resolution.
When JWTReader tries to parse the exp field a ClassCastException will occur, becaue a Long object is returned and not an Integer.
Attached patch casts to the super class method to cover Long and Integer values correctly.
What do you think about this patch? Okay to go in?