<div dir="ltr">+1 as I have a similar use-case from a customer.<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 31, 2015 at 10:46 AM, Travis De Silva <span dir="ltr"><<a href="mailto:traviskds@gmail.com" target="_blank">traviskds@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>My vote is to provide this feature at a client level as per the original request.</div><div><br></div><div>I think realms should be used for completely different domains when we want to isolate users etc. Should not try and use it for something that it was not intended in the design.</div><div><br></div><div>The reason why you might need theming at client level is i<span style="color:rgb(0,0,0);line-height:normal">if you really think that clients which are essentially different applications most of the time and each of these applications might have different look and feel themes (either due to different development teams or vendors building different applications). </span></div><div><span style="color:rgb(0,0,0);line-height:normal"><br></span></div><div><span style="color:rgb(0,0,0);line-height:normal">So when someone logins via KeyCloak, its true that we are logging into a realm but for an end user, it is really logging into a application and there is a need for the login page theme to look similar to the application look and feel.</span></div><div><span style="color:rgb(0,0,0);line-height:normal"><br></span></div><div><span style="color:rgb(0,0,0);line-height:normal">Also I have a use case where I have a back office application that requires login for admin users and then I have the front office of this application where in addition to the admin users, you also can have other users as well who can self register and login to the front end which is a consumer facing site.</span></div><div><span style="color:rgb(0,0,0);line-height:normal"><br></span></div><div><span style="color:rgb(0,0,0);line-height:normal">How I handle this is by having two clients in the same realm. This works fine if you are happy with the same backend login theme to be there for the consumer facing frontend. But we cannot do that as the front end is a consumer facing SaaS site, so each front end needs to have the client's website theme. This becomes very hard to do if we don't have theming at a client level.</span></div><div><span style="color:rgb(0,0,0);line-height:normal"><br></span></div><div><font color="#000000"><span style="line-height:normal">I came across this post from Bill a few months ago </span></font></div><div><a href="http://lists.jboss.org/pipermail/keycloak-user/2015-July/002537.html" style="line-height:normal" target="_blank">http://lists.jboss.org/pipermail/keycloak-user/2015-July/002537.html</a><font color="#000000"><span style="line-height:normal"><br></span></font></div><div><font color="#000000"><span style="line-height:normal"><br></span></font></div><div><font color="#000000"><span style="line-height:normal">I am thinking to make use of the client variable that is available in login.ftl and load different freemarker fragments that will then theme it differently for each client. As mentioned by Bill, having many if conditions might not be ideal but it might meet the requirement.</span></font></div><div><font color="#000000"><span style="line-height:normal"><br></span></font></div><div><font color="#000000"><span style="line-height:normal">Cheers</span></font></div><span class="HOEnZb"><font color="#888888"><div><font color="#000000"><span style="line-height:normal">Travis</span></font></div><div><font color="#000000"><span style="line-height:normal"><br></span></font></div><div><font color="#000000"><span style="line-height:normal"><br></span></font></div><div><br></div><div><font color="#000000"><span style="line-height:normal"> </span></font></div></font></span></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br>
</div></div>