[keycloak-user] Deployment of custom IdentityProviders with HTML pages for admin console

Dmitry Telegin dt at acutus.pro
Wed Aug 1 20:06:24 EDT 2018


Hi Thomas,

(skipped)

> My current deployment script contains the following:
> ...
>   echo install new acme-identityprovider
>   cp target/*.jar $KEYCLOAK_HOME/standalone/deployments
> 
>   echo install new theme page
>   cp -r src/main/resources/themes/* $KEYCLOAK_HOME/themes
> ...
> 
> This copies the associated HTML files to
>   themes/base/admin/resources/partials/realm-identity-provider-acme.html
>   themes/base/admin/resources/partials/realm-identity-provider-acme-ext.html

So you are actually patching Keycloak base theme? You're a cheater! :-D This is not how GUI modifications are done in Keycloak normally.

If you're on KC 4.0.0+, seems like Theme Resources is what you're looking for:
https://www.keycloak.org/docs/latest/server_development/index.html#_theme_resource

Otherwise, the recommended way is to create a custom theme, inherit it from Keycloak stock theme and extend it with your content. You can put your theme into the same JAR to have it hot deployed (see KEYCLOAK-4547), but also only if you're on KC 4.0.0+.

Cheers,
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training

Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info at acutus.pro

> 
> Cheers,
> Thomas
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list