More fixes to bundled war example

This commit is contained in:
Stian Thorgersen 2014-04-28 14:32:25 +01:00
parent c06009d5fb
commit 0546aebc84

View file

@ -39,7 +39,7 @@ public class KeycloakServerApplication extends KeycloakApplication {
AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext)servletContext.getAttribute(AdapterDeploymentContext.class.getName()); AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext)servletContext.getAttribute(AdapterDeploymentContext.class.getName());
AdapterConfig adapterConfig = new AdapterConfig(); AdapterConfig adapterConfig = new AdapterConfig();
String host = (String)servletContext.getInitParameter("host-port"); 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); log.info("**** auth server url: " + uri);
adapterConfig.setRealm("demo"); adapterConfig.setRealm("demo");
adapterConfig.setResource("customer-portal"); adapterConfig.setResource("customer-portal");