[keycloak-dev] Themes per application

Stefano Travelli stefano.travelli at entaksi.eu
Fri May 8 03:57:50 EDT 2015


I have a similar use case which I addressed overriding the ftl file and 
selecting different template based on clientid:

<#if client?? && client.clientId?contains('client_x')>
     <#import "client_x/template.ftl" as layout>
<#else>
     <#import "template.ftl" as layout>
</#if>

It works pretty well with login and register template. You won't be able 
to customize per application the reset password and error template, though.

My use case is that I manage a service and there are several resellers 
for this service. Each reseller has its own branded application and want 
some branding on the login and register page as well.

Hope this helps.
stefano

Il 08/05/2015 07:14, Stian Thorgersen ha scritto:
> When a user logs in the user logs in to the realm, not the application. So it doesn't make sense to have different login pages per application.
>
> ----- Original Message -----
>> From: "Marcio Lima" <marcioferlan at gmail.com>
>> To: keycloak-dev at lists.jboss.org
>> Sent: Thursday, 7 May, 2015 11:30:46 PM
>> Subject: [keycloak-dev] Themes per application
>>
>> Hello guys!
>>
>> I'm trying to implement Keycloak in my solution, but it turns out that I
>> need to have a completely different login page per application in the
>> same Realm. Keycloak allows me to create themes, but only at Realm
>> level, not at Application level.
>>
>> How would you guys suggest me approaching this? Any plans to develop
>> such a feature or ways to work around it?
>>
>> Thanks in advance!
>> --
>>
>> Atenciosamente,
>>
>> Marcio Fernandes de Lima
>> http://linkedin.com/in/marcioferlan
>> SCJP, SCWCD, MySQL Core Certified
>>
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-- 
*Stefano Travelli*
*Entaksi Solutions srl*
Via la Piana 76 - fraz. Pontepetri -
51028 San Marcello Pistoiese (PT)
P.IVA 01621900479
http://www.entaksi.eu <blocked::http://www.entaksi.eu/>

*AZIENDA CON SISTEMA INTEGRATO **DI GESTIONE*
*QUALITÀ**, SICUREZZA DELLE INFORMAZIONI, SERVIZI IT*
*CERTIFICATO DA DNV**·**GL***
*=**ISO 9001 **= **ISO **27**001 **=**ISO **2**0**00**0 **=*

La presente comunicazione ha natura non personale e le risposte 
potrebbero essere conosciute nell'organizzazione di appartenenza da più 
soggetti anche diversi dal mittente. Il messaggio e ogni documento o 
file allegato è strettamente riservato ed è rivolto unicamente alla/e 
persona/e o Enti cui è indirizzata, ed alle altre/i da questi ultimi 
autorizzate a riceverlo. Sono vietate la diffusione, la distribuzione e 
la copia delle informazioni qui contenute da parte di soggetti non 
espressamente autorizzati.Se avete ricevuto questa e-mail per errore Vi 
preghiamo di eliminarla dai Vostri archivi e darne comunicazione al 
mittente.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150508/4d58def4/attachment-0001.html 


More information about the keycloak-dev mailing list