Skip to content

OAuth2AuthenticationTokenMixinTests should anticipate a lower-precision timestamp #9461

Closed
@jzheaux

Description

@jzheaux

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 deserialized Instant values match their pre-serialized Instant values up to the microsecond.

Additional Details

This can be verified on Windows using JDK 11 and running OAuth2AuthenticationTokenMixinTests. Occassionally, the Instant obtained from the OS contains enough precision to cause rounding, making the assertions fail.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions