Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix date serialization for list/map claims #406

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

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

jimmyjames
Copy link
Contributor

Changes

Custom list and map claims may include java.util.Date as well as java.time.Instant values for NumericDate values. When serializing these lists/maps, we need to account for Date values and serialize to the number of seconds since the epoch.

References

JWT Specification - NumericDate definition

Testing

Relevant tests updated to expect java.util.Date claims to be serialized to the number of seconds since the epoch.

Checklist

@jimmyjames jimmyjames added the small This PR may require low effort to action, or contains few changes to review label Mar 11, 2020
@jimmyjames jimmyjames added this to the v4-Next milestone Mar 11, 2020
@jimmyjames jimmyjames requested a review from a team March 11, 2020 01:18
@jimmyjames jimmyjames merged commit bc0adad into auth0:4.0.0-DEV Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small This PR may require low effort to action, or contains few changes to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants