diff --git a/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java b/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java index e8eca80bd4..66a643ce13 100644 --- a/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java +++ b/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java @@ -233,6 +233,14 @@ public class KeycloakApplication extends Application { } } + if (node == null) { + URL resource = Thread.currentThread().getContextClassLoader().getResource("META-INF/keycloak-server.json"); + if (resource != null) { + logger.loadingFrom(resource); + node = new ObjectMapper().readTree(resource); + } + } + if (node != null) { Properties properties = new SystemEnvProperties(); Config.init(new JsonConfigProvider(node, properties));