Fix KcOidcBrokerTransientSessionsTest

Closes: #24313
This commit is contained in:
Hynek Mlnarik 2023-10-26 10:51:36 +02:00 committed by Hynek Mlnařík
parent 8cd40bd911
commit 2c4d58f5af

View file

@ -1313,7 +1313,7 @@ public class TokenManager {
public static NotBeforeCheck forModel(KeycloakSession session, RealmModel realmModel, UserModel userModel) {
return isLightweightUser(userModel)
? new NotBeforeCheck(((LightweightUserAdapter) userModel).getCreatedTimestamp().intValue())
? new NotBeforeCheck((int) (((LightweightUserAdapter) userModel).getCreatedTimestamp() / 1000L))
: new NotBeforeCheck(session.users().getNotBeforeOfUser(realmModel, userModel));
}
}