OAuth2AuthenticationTokenMixinTests should anticipate a lower-precision timestamp #9461
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Instant
can contain up to nine digits in its decimal part, but Jackson only supports microsecond precision by default. Given that,OAuth2AuthenticationTokenMixinTests
should only assert that deserializedInstant
values match their pre-serializedInstant
values up to the microsecond.Additional Details
This can be verified on Windows using JDK 11 and running
OAuth2AuthenticationTokenMixinTests
. Occassionally, theInstant
obtained from the OS contains enough precision to cause rounding, making the assertions fail.The text was updated successfully, but these errors were encountered: