Open
Description
Description
Keycloak has several places where it handles the current time and the expiration time as an integer. This prevents a current time after 2038, and also expiry dates after 2038.
Some methods in JsonWebToken are deprecated as they return an integer, but they are still used in lots of places. Currently Time.currentTime() still returns an integer.
Motivation
Allow token expiry longer than 2038. Clean up deprecated methods.
Handling timestamps as signed integers is known as the Year 2038 problem aka the Epochalypse.
Related issues
Contains all the various issues/bugs reported, which are related to this problem: