/** * 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; } }
@Override public RelativeUrlsUsed getRelativeUrls() { return delegate.getRelativeUrls(); }