protected String defaultKeycloakConfigLocation ( ) { String karafBase = System . getProperty ( "karaf.base" ) ; if ( karafBase != null ) { return karafBase + "/etc/keycloak.json" ; } String jettyHome = System . getProperty ( "jetty.home" ) ; if ( jettyHome != null ) { return jettyHome + "/etc/keycloak.json" ; } String tomcatHome = System . getProperty ( "catalina.home" ) ; if ( tomcatHome != null ) { return tomcatHome + "/conf/keycloak.json" ; } String jbossHome = System . getProperty ( "jboss.server.config.dir" ) ; if ( jbossHome != null ) { return jbossHome + "/keycloak.json" ; } // Fallback to classpath inside hawtio.war return "classpath:keycloak.json" ; }
Will try to guess the config location based on the server where hawtio is running . Used just if keycloakClientConfig is not provided