Package org.keycloak.adapters.undertow
Class ChangeSessionId
- java.lang.Object
-
- org.keycloak.adapters.undertow.ChangeSessionId
-
public class ChangeSessionId extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description ChangeSessionId()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringchangeSessionId(io.undertow.server.HttpServerExchange exchange, boolean create)static voidturnOffChangeSessionIdOnLogin(io.undertow.servlet.api.DeploymentInfo deploymentInfo)This is a hack to be backward compatible between Undertow 1.3+ and versions lower.
-
-
-
Method Detail
-
turnOffChangeSessionIdOnLogin
public static void turnOffChangeSessionIdOnLogin(io.undertow.servlet.api.DeploymentInfo deploymentInfo)
This is a hack to be backward compatible between Undertow 1.3+ and versions lower. In Undertow 1.3, a new switch was added setChangeSessionIdOnLogin, this screws up session management for keycloak as after the session id is uploaded to Keycloak, undertow changes the session id and it can't be invalidated.- Parameters:
deploymentInfo-
-
changeSessionId
public static String changeSessionId(io.undertow.server.HttpServerExchange exchange, boolean create)
-
-