From 2c4d58f5af3df8e2858010abd42a9b73300999d4 Mon Sep 17 00:00:00 2001 From: Hynek Mlnarik Date: Thu, 26 Oct 2023 10:51:36 +0200 Subject: [PATCH] Fix KcOidcBrokerTransientSessionsTest Closes: #24313 --- .../src/main/java/org/keycloak/protocol/oidc/TokenManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java b/services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java index 781c07b3a5..421b491207 100755 --- a/services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java +++ b/services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java @@ -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)); } }