From 80873ea4b9dc1ce6d60f16c8ffc2db20b40f662f Mon Sep 17 00:00:00 2001 From: ammannmi Date: Wed, 5 Jan 2022 12:23:46 +0100 Subject: [PATCH] Allow changing the session id on login in Tomcat adapter --- .../keycloak/adapters/tomcat/KeycloakAuthenticatorValve.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adapters/oidc/tomcat/tomcat/src/main/java/org/keycloak/adapters/tomcat/KeycloakAuthenticatorValve.java b/adapters/oidc/tomcat/tomcat/src/main/java/org/keycloak/adapters/tomcat/KeycloakAuthenticatorValve.java index 9da6964405..0286882057 100755 --- a/adapters/oidc/tomcat/tomcat/src/main/java/org/keycloak/adapters/tomcat/KeycloakAuthenticatorValve.java +++ b/adapters/oidc/tomcat/tomcat/src/main/java/org/keycloak/adapters/tomcat/KeycloakAuthenticatorValve.java @@ -110,4 +110,9 @@ public class KeycloakAuthenticatorValve extends AbstractKeycloakAuthenticatorVal protected AbstractAuthenticatedActionsValve createAuthenticatedActionsValve(AdapterDeploymentContext deploymentContext, Valve next, Container container) { return new AuthenticatedActionsValve(deploymentContext, next, container); } + + @Override + protected CatalinaRequestAuthenticator createRequestAuthenticator(Request request, CatalinaHttpFacade facade, KeycloakDeployment deployment, AdapterTokenStore tokenStore) { + return new TomcatRequestAuthenticator(deployment, tokenStore, facade, request, createPrincipalFactory()); + } }