Class SavedRequest

java.lang.Object
org.keycloak.adapters.undertow.SavedRequest
All Implemented Interfaces:
Serializable

public class SavedRequest extends Object implements Serializable
Saved servlet request. Note bill burke: I had to fork this because Undertow was automatically restoring the request before the code could be processed and redirected. CachedAuthenticatedSessionHandler was restoring the request before the authentication manager could read the code from the URI Originally, I copied SavedRequest as is, but there are type mismatches between Undertow 1.1.1 and 1.3.10. So, trySaveRequest calls the same undertow version, removes the saved request, stores it in a different session attribute, then restores the old attribute later
Author:
Stuart Douglas
See Also:
  • Constructor Details

    • SavedRequest

      public SavedRequest()
  • Method Details

    • trySaveRequest

      public static void trySaveRequest(io.undertow.server.HttpServerExchange exchange)
    • tryRestoreRequest

      public static void tryRestoreRequest(io.undertow.server.HttpServerExchange exchange, javax.servlet.http.HttpSession session)