KEYCLOAK-3196: Test need ability to load keycloak-server.json from
/META-INF
This commit is contained in:
parent
e4d97485ec
commit
3abcf713e5
1 changed files with 8 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue