Ejemplo n.º 1
0
 /**
  * This function has been copied (and modified) from the Keycloak AdapterDeploymentContext class.
  * It should be kept up-to-date with future versions of Keycloak.
  */
 public KeycloakDeployment resolveUrls(
     KeycloakDeployment deployment, HttpFacade.Request facadeRequest) {
   if (deployment.getRelativeUrls() == RelativeUrlsUsed.NEVER) {
     // Absolute URI are already set to everything
     return deployment;
   } else {
     DeploymentDelegate delegate = new DeploymentDelegate(deployment);
     delegate.setAuthServerBaseUrl(getBaseBuilder(deployment, facadeRequest).build().toString());
     return delegate;
   }
 }
Ejemplo n.º 2
0
 @Override
 public RelativeUrlsUsed getRelativeUrls() {
   return delegate.getRelativeUrls();
 }