More fixes to bundled war example
This commit is contained in:
parent
c06009d5fb
commit
0546aebc84
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue