keycloakify: Account theme not available in Keycloak
I’m trying keycloakify with keycloak 22.0.0.
I’m able to have a customized login screen and keycloakify does the job. Looks great. However, I’m not able to have a customized account theme.
I’m using the keycloakify-starter project. It produces a jar file containing the login and account themes.
But in Keycloak Realm Settings, the keycloakify-starter
and keycloakify-starter-variant-1
themes are missing from the account dropdown (there are present in the login dropdown). See screenshots.
My understanding is that they are missing because the parent theme (keycloak
) is itself missing.
Keycloak produces the logs below:
aim_keycloak | 2023-08-01 14:25:52,338 WARN [org.keycloak.theme.DefaultThemeManager] (executor-thread-10) Not found parent theme 'keycloak' of theme 'keycloakify-starter'. Unable to load ACCOUNT theme 'keycloakify-starter' due to this.
aim_keycloak | 2023-08-01 14:25:52,338 ERROR [org.keycloak.theme.DefaultThemeManager] (executor-thread-10) Failed to find ACCOUNT theme keycloakify-starter, using built-in themes
aim_keycloak | 2023-08-01 14:25:52,339 WARN [org.keycloak.theme.DefaultThemeManager] (executor-thread-10) Not found parent theme 'keycloak' of theme 'keycloakify-starter-variant-1'. Unable to load ACCOUNT theme 'keycloakify-starter-variant-1' due to this.
aim_keycloak | 2023-08-01 14:25:52,339 ERROR [org.keycloak.theme.DefaultThemeManager] (executor-thread-10) Failed to find ACCOUNT theme keycloakify-starter-variant-1, using built-in themes
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24
Commits related to this issue
- #389 https://github.com/xgp/keycloak-account-v1/issues/3 — committed to keycloakify/keycloakify by garronej a year ago
- #389 https://github.com/xgp/keycloak-account-v1/issues/3 — committed to keycloakify/keycloakify by garronej 7 months ago
- #389 https://github.com/p2-inc/keycloak-account-v1/issues/3 — committed to keycloakify/keycloakify by garronej 7 months ago
Let’s GO!
Keycloakify v9 has just been released!
This version introduces account theme support for Keycloak 23 and upwards (sadly, Keycloak 22 is a lost battle).
What’s more, the themes remain retrocompatible with older versions of Keycloak, simply select
_retrocompat
in the dropdown when selecting your theme and load theretrocopat-*.jar
jar generated by Keycloakify if you are on Keycloak 21 or prior.A huge shout-out to @xgp, this absolute legend, who made this possible by submitting a PR to Keycloak and successfully getting it merged!
For more details, check out the migration guide: Keycloakify v8 to v9
Just to make it clear for everyone. The login themes work fine on Keycloak 22, it’s only the Account themes that do not work.
Also @inomn the required changes to Keycloak have been merged to Keycloak
main
but they haven’t made it into a release yet.@inomn Still on top of my mind but I’m currently like two week late on shiping a very important feature our main project.
This is why I aven’t got time to work on this yet but this is definately not “abandonned” it will lend as soon as I manage to get back on schedule.
Sorry for the delay on this.
My sincere apologies,
Regrettably, I’m unable to support the Account theme in Keycloak 22. The original Account theme v1 has been phased out by Keycloak, and the current methods of implementing account and login themes have diverged significantly.
I’ve reached out to the Keycloak development team in an effort to identify a possible resolution. However, I must candidly admit that a prompt solution might not be immediately forthcoming.
Here are the alternative courses of action you may wish to consider:
Develop a custom account theme in line with Keycloak’s established method. The language employed is TypeScript/React which could be a silver lining for some. However, you would need to navigate the building and bundling process independently. Please refer to the following resource for more information: Keycloak’s Official Repository.
Continue using Keycloak 21 while I work on devising a viable solution.
In hindsight, I regret not having foreseen this situation and deeply apologize for any inconvenience this may cause. I appreciate your understanding and patience in this matter.
@xgp Thanks for the update!
Well it means pepoles will have to update to Keycloak 23. Nevermind.
@xgp I’ll do my experimentation and I let you know if everything work as expected.
Thank you @garronej for the explanation. I really hope you’ll find a sustainable solution. For now, I’ll stick with Keycloak 21.0.0.
Yes, there will be a fix soon
Issue: https://github.com/keycloak/keycloak/issues/22318 Draft PR: https://github.com/keycloak/keycloak/pull/22317
Thanks to @xgp, things are looking good!
https://groups.google.com/g/keycloak-dev/c/j0aEZTWh-Lw
I believe you have the same issue as me : https://github.com/keycloakify/keycloakify/issues/388