Repository navigation
[Keycloak 26.1.0] keycloak\common\resources\vendor is missing in the org.keycloak.keycloak-themes-26.1.0.jar #36784
Before reporting an issue
AreaNo response Describe the bugHi, I noticed that the org.keycloak.keycloak-themes-26.1.0.jar does not contain keycloak\common\resources\vendor anymore and so when I start the server and load the admin console it stucks with the messages: Loading the Administration Console Anything I missing here or why it is this way now? I came from 25.x.x Version26.1.0 Regression
Expected behaviorShould contain or not load the resources from that path Actual behaviorThrows 404: https://company.com/auth/resources/0x597/common/keycloak/vendor/react/react-jsx-runtime.production.min.js How to Reproduce?Copy themes folder from org.keycloak.keycloak-themes-26.1.0.jar to /opt/keycloak/themes Maybe the docker images contains it before?? Anything else?No response |
Replies: 5 comments
|
I just checked. When I don't mount the themes folder it works. Can someone explain me how this works? Edit: |
|
The vendor part has been moved to a separate .jar org.keycloak.keycloak-themes-vendor-26.1.0.jar |
|
okay, it works now also when I remove base, keycloak and keycloak.v2 from my customs themes folder. otherwise we can close it. |
|
Keycloak loads its default themes from org.keycloak.keycloak-themes-26.1.0.jar (and now from org.keycloak.keycloak-themes-vendor-26.1.0.jar for the vendor part) from the /opt/keycloak//lib/lib/main. You don't have to copy anything for the default themes to work, they are already there. If you want to adapt a theme to your needs, you can can extract and copy the theme you want to adapt and rename it and then you put it in the /opt/keycloak/themes folder. In development it's easier to work with the theme files to see your modifications on the run, but in production it's better to package them in a .jar and then put them in /opt/keycloak/providers More about all that : https://www.keycloak.org/docs/latest/server_development/index.html#_themes |
|
I am moving this to a discussion as I don't believe this is actually a bug, considering that the vendor assets are present, but in a separate JAR. |
Keycloak loads its default themes from org.keycloak.keycloak-themes-26.1.0.jar (and now from org.keycloak.keycloak-themes-vendor-26.1.0.jar for the vendor part) from the /opt/keycloak//lib/lib/main.
You don't have to copy anything for the default themes to work, they are already there.
If you want to adapt a theme to your needs, you can can extract and copy the theme you want to adapt and rename it and then you put it in the /opt/keycloak/themes folder. In development it's easier to work with the theme files to see your modifications on the run, but in production it's better to package them in a .jar and then put them in /opt/keycloak/providers
More about all that : https://www.keycloak.o…