From 1eaafcd3d9ad4082429ab500a4512c87d47ed75c Mon Sep 17 00:00:00 2001 From: gerbermichi Date: Fri, 19 Dec 2014 16:55:46 +0100 Subject: [PATCH] bugfix for excluded post rest services --- .../org/keycloak/adapters/undertow/ServletKeycloakAuthMech.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/undertow/src/main/java/org/keycloak/adapters/undertow/ServletKeycloakAuthMech.java b/integration/undertow/src/main/java/org/keycloak/adapters/undertow/ServletKeycloakAuthMech.java index 0ae5b6eb78..2c7ece02ba 100755 --- a/integration/undertow/src/main/java/org/keycloak/adapters/undertow/ServletKeycloakAuthMech.java +++ b/integration/undertow/src/main/java/org/keycloak/adapters/undertow/ServletKeycloakAuthMech.java @@ -49,7 +49,7 @@ public class ServletKeycloakAuthMech extends AbstractUndertowKeycloakAuthMech { public AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext) { UndertowHttpFacade facade = new UndertowHttpFacade(exchange); KeycloakDeployment deployment = deploymentContext.resolveDeployment(facade); - if (!deployment.isConfigured()) { + if (!deployment.isConfigured() || !securityContext.isAuthenticationRequired()) { return AuthenticationMechanismOutcome.NOT_ATTEMPTED; }