Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-3150] Serialize dates in collections as seconds since epoch #534

Merged
merged 3 commits into from
Mar 4, 2022

Conversation

jimmyjames
Copy link
Contributor

This change ensures that Date claim values are serialized as seconds since the epoch, as specified by RFC 7519. It also updates the JavaDocs for Date-based claim creation in JWTCreator, to more accurately define how Date-based claims are written to the resulting JSON.

The change is marked as breaking change due to the behavioral nature of this fix; clients relying upon the existing behavior will need to be updated to account for this change.

@jimmyjames jimmyjames added this to the v4-Beta milestone Mar 2, 2022
@jimmyjames jimmyjames requested a review from a team as a code owner March 2, 2022 20:29
@poovamraj
Copy link
Contributor

Just had a comment about the docs. If we want to handle this in the separate docs task, that will make sense as well. Other than that this looks great 👍

@jimmyjames jimmyjames force-pushed the fix-date-serialization-in-collections branch from 2e93c13 to f3c4192 Compare March 4, 2022 16:19
Copy link
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@jimmyjames jimmyjames merged commit 5c94325 into v4-dev Mar 4, 2022
poovamraj pushed a commit that referenced this pull request Mar 16, 2022
* [SDK-3150] Serialize dates in collections as seconds since epoch

* cleanup tests

* Update javadocs
@jimmyjames jimmyjames deleted the fix-date-serialization-in-collections branch March 17, 2022 13:11
@poovamraj poovamraj modified the milestones: v4-Beta, 4.0.0-beta.0 May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants