[keycloak-user] Deploy a custom theme with the war

Stian Thorgersen stian at redhat.com
Thu Sep 11 08:35:42 EDT 2014


Yes, if "my deployment's lib directory" means "<KEYCLOAK HOME>/standalone/deployments/auth-server.war/WEB-INF/lib"

----- Original Message -----
> From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
> To: "Stian Thorgersen" <stian at redhat.com>
> Cc: keycloak-user at lists.jboss.org
> Sent: Thursday, 11 September, 2014 2:31:03 PM
> Subject: Re: [keycloak-user] Deploy a custom theme with the war
> 
> So I would have to build a module that has the same mechanics of that one
> on providing themes, bundle it as a jar and adding it to my deployment's
> lib directory.
> 
> Is that correct?
> 
> On Thu, Sep 11, 2014 at 9:24 AM, Stian Thorgersen <stian at redhat.com> wrote:
> 
> > You can bundle a theme as a jar, but as it's an extension to Keycloak, not
> > your war, it has to be on Keycloak's classpath
> > ('standalone/deployments/auth-server.war/WEB-INF/lib').
> >
> > See https://github.com/keycloak/keycloak/tree/master/forms/common-themes,
> > specifically
> > https://github.com/keycloak/keycloak/blob/master/forms/common-themes/src/main/java/org/keycloak/theme/DefaultKeycloakThemeProvider.java
> >
> > ----- Original Message -----
> > > From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
> > > To: keycloak-user at lists.jboss.org
> > > Sent: Thursday, 11 September, 2014 2:18:23 PM
> > > Subject: [keycloak-user] Deploy a custom theme with the war
> > >
> > > Hello,
> > >
> > > I'm not sure if there was already a question on this matter, but I
> > searched
> > > aroung in JIRA and I couldn't find it.
> > >
> > > Is there a way to deploy a custom theme along with my war artifact?
> > >
> > > I tried creating modules like the ones provided, I extended an e-mail
> > module
> > > and a common themes module, creating the factories with a new id, but on
> > the
> > > admin console UI I can't see my own theme on the select menu.
> > >
> > > If I create a theme and insert it in the /standalone/configuration/themes
> > > directory of my application server it works, but I was told to try and
> > > deploy it along with our war, to capture the theme from the classpath.
> > >
> > > Is there already a built in way to do this?
> > >
> > > --
> > > Rodrigo Sasaki
> > >
> > > _______________________________________________
> > > keycloak-user mailing list
> > > keycloak-user at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> 
> 
> 
> --
> Rodrigo Sasaki
> 


More information about the keycloak-user mailing list