diff --git a/adapters/oidc/spring-boot/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfiguration.java b/adapters/oidc/spring-boot/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfiguration.java index 5c1b54678c..dc2573d462 100755 --- a/adapters/oidc/spring-boot/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfiguration.java +++ b/adapters/oidc/spring-boot/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfiguration.java @@ -215,7 +215,7 @@ public class KeycloakSpringBootConfiguration { securityHandler.setConstraintMappings(jettyConstraintMappings); securityHandler.setAuthenticator(keycloakJettyAuthenticator); - webAppContext.setHandler(securityHandler); + webAppContext.setSecurityHandler(securityHandler); } }