diff --git a/bundled-war-example/src/main/java/org/keycloak/server/KeycloakServerApplication.java b/bundled-war-example/src/main/java/org/keycloak/server/KeycloakServerApplication.java index 1b14058ae6..8c1a1be45a 100755 --- a/bundled-war-example/src/main/java/org/keycloak/server/KeycloakServerApplication.java +++ b/bundled-war-example/src/main/java/org/keycloak/server/KeycloakServerApplication.java @@ -39,7 +39,7 @@ public class KeycloakServerApplication extends KeycloakApplication { AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext)servletContext.getAttribute(AdapterDeploymentContext.class.getName()); AdapterConfig adapterConfig = new AdapterConfig(); String host = (String)servletContext.getInitParameter("host-port"); - String uri = KeycloakUriBuilder.fromUri("http://" + host).path(servletContext.getContextPath()).build().toString(); + String uri = KeycloakUriBuilder.fromUri("http://" + host).path(servletContext.getContextPath()).path("auth").build().toString(); log.info("**** auth server url: " + uri); adapterConfig.setRealm("demo"); adapterConfig.setResource("customer-portal");