Skip to content

Commit

Permalink
bugfix for excluded post rest services
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbermichi committed Dec 19, 2014
1 parent 2a33b17 commit 1eaafcd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ public ServletKeycloakAuthMech(AdapterDeploymentContext deploymentContext, Under
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;
}

Expand Down

0 comments on commit 1eaafcd

Please sign in to comment.