KEYCLOAK-858 avoid creating inner DeploymentDelegate for each request

This commit is contained in:
mposolda 2014-11-21 23:49:29 +01:00
parent e0d884ac1a
commit f1378a6092
2 changed files with 6 additions and 4 deletions

View file

@ -78,9 +78,11 @@ public class AdapterDeploymentContext {
if (deployment == null) return null;
if (deployment.getAuthServerBaseUrl() == null) return deployment;
deployment = resolveUrls(deployment, facade);
if (deployment.getRealmKey() == null) resolveRealmKey(deployment);
return deployment;
KeycloakDeployment resolvedDeployment = resolveUrls(deployment, facade);
if (resolvedDeployment.getRealmKey() == null) {
resolveRealmKey(resolvedDeployment);
}
return resolvedDeployment;
}
protected KeycloakDeployment resolveUrls(KeycloakDeployment deployment, HttpFacade facade) {

View file

@ -24,7 +24,7 @@ public class KeycloakDeployment {
protected RelativeUrlsUsed relativeUrls;
protected String realm;
protected PublicKey realmKey;
protected volatile PublicKey realmKey;
protected String authServerBaseUrl;
protected String realmInfoUrl;
protected KeycloakUriBuilder authUrl;