You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey people.
I am having a hard time trying to find out how to read custom configuration files in Keycloak 20. Previoulsy (at least in v9.0.2) you could create a custom config file, put it into /standalone/configuration folder and then access it via Config.Scope interface class (read path and then use FileInputStream to read the data). This is not working anymore in KC 20, does anyone have an alternative to read custom files? I am trying to put the custom file to the /conf folder (where keycloak.conf is located as well) but I cannot get to make it work. Thanks.
Example from 9.0.2 version:
log.info("Loading properties file");
String path = config.get("path");
if (path == null || path.length() == 0) {
log.warn(PROVIDER_NAME + " properties not configured and can't be loaded");
return;
}
```
path = EnvUtil.replace(path); // replaces ${jboss.home.dir} in path with actual path
try (InputStream is = new FileInputStream(path)) {
this.properties.load(is);
validatePropertyAlgorithmValue();
log.info("Properties file loaded");
}`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hey people.
I am having a hard time trying to find out how to read custom configuration files in Keycloak 20. Previoulsy (at least in v9.0.2) you could create a custom config file, put it into /standalone/configuration folder and then access it via Config.Scope interface class (read path and then use FileInputStream to read the data). This is not working anymore in KC 20, does anyone have an alternative to read custom files? I am trying to put the custom file to the /conf folder (where keycloak.conf is located as well) but I cannot get to make it work. Thanks.
Example from 9.0.2 version:
All reactions