diff --git a/adapters/oidc/jetty/jetty9.4/src/main/java/org/keycloak/adapters/jetty/Jetty94SessionManager.java b/adapters/oidc/jetty/jetty9.4/src/main/java/org/keycloak/adapters/jetty/Jetty94SessionManager.java
index f9e11fd468..044e30cd8f 100755
--- a/adapters/oidc/jetty/jetty9.4/src/main/java/org/keycloak/adapters/jetty/Jetty94SessionManager.java
+++ b/adapters/oidc/jetty/jetty9.4/src/main/java/org/keycloak/adapters/jetty/Jetty94SessionManager.java
@@ -17,6 +17,7 @@
package org.keycloak.adapters.jetty;
+import org.eclipse.jetty.server.session.Session;
import org.eclipse.jetty.server.session.SessionHandler;
import org.keycloak.adapters.jetty.spi.JettySessionManager;
@@ -34,7 +35,15 @@ public class Jetty94SessionManager implements JettySessionManager {
}
@Override
- public HttpSession getHttpSession(String id) {
- return sessionHandler.getHttpSession(id);
+ public HttpSession getHttpSession(String extendedId) {
+ // inlined code from sessionHandler.getHttpSession(extendedId) since the method visibility changed to protected
+
+ String id = sessionHandler.getSessionIdManager().getId(extendedId);
+ Session session = sessionHandler.getSession(id);
+
+ if (session != null && !session.getExtendedId().equals(extendedId)) {
+ session.setIdChanged(true);
+ }
+ return session;
}
}
diff --git a/pom.xml b/pom.xml
index 6f466101d6..b0a89d76e1 100755
--- a/pom.xml
+++ b/pom.xml
@@ -105,7 +105,7 @@
1.7.1.Final
9.2.4.v20141103
9.3.9.v20160517
- 9.4.2.v20170220
+ 9.4.29.v20200521
6.0.3
2.1.4
1.1.6