Class ChangeSessionId


  • public class ChangeSessionId
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • ChangeSessionId

        public ChangeSessionId()
    • 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)