We would like to use a startup cli script to enable our custom language selector. How can this be achieved using startup scripts?
This is for keycloak 16.1 running inside docker container.
We are using this script to disable theme caching for example:
embed-server --std-out=echo --server-config=standalone-ha.xml
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheThemes,value=false)
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheTemplates,value=false)
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=staticMaxAge,value=-1)
stop-embedded-server
The idea is to disable the default localeSelector:
<spi name="localeSelector">
<provider name="default" enabled="false"/>
</spi>
Something similar to make our custom selector the default that’s what we want to achieve.
Any help is greatly appreciated.
Best regards,
Alex Freller