- changed status to duplicate
JWTClaimsSet unable to serialize ZonedDateTime to JSON correctly
Issue #437
duplicate
Adding a claim with value ZonedDateTime.now(Clock.systemUTC())
to JWTClaimsSet
and then calling toString()
on that object shows the following JSON string:
{"aud":"https:\/\/cas.example.org:8443\/cas","sub":"casuser","date-time":{"offset":{"totalSeconds":0},"zone":{"totalSeconds":0}},"successfulAuthenticationHandlers":"SimpleTestUsernamePasswordAuthenticationHandler","iss":"https:\/\/cas.example.org:8443\/cas","exp":1626376626,"iat":1626347826,"jti":"TGT-1-h2ZDZA-ud5VMoPUlyXFl0sEDZsrVCiIr"}
Note the date-time
claim.
Using JDK 11 with library version9.11.1
Comments (1)
-
- Log in to comment
Duplicate of #372.