X Tutup
Skip to content

Fix date serialization for list/map claims#406

Merged
jimmyjames merged 1 commit intoauth0:4.0.0-DEVfrom
jimmyjames:fix-date-serialization
Mar 11, 2020
Merged

Fix date serialization for list/map claims#406
jimmyjames merged 1 commit intoauth0:4.0.0-DEVfrom
jimmyjames:fix-date-serialization

Conversation

@jimmyjames
Copy link
Copy Markdown
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

X Tutup