Is it possible to get the root url in the Freemaker's template used by Keycloak login theme? The closest one I found is inside the client bean:
keycloak-master\services\src\main\java\org\keycloak\forms\login\freemarker\model\ClientBean.java
public String getBaseUrl() {
return ResolveRelative.resolveRelativeUri(session, client.getRootUrl(), client.getBaseUrl());
}
Which can be called in a Freemaker tamplete:
${client.baseUrl}
However, the client.getRootUrl() itself is not exposed. Is it possible to get root url without changing the service source code, just using the Freemaker template in the Keycloak theme?