<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Stian, thanks for the quick response!<br>
<br>
I do agree the login happens at Realm level and that shouldn't and
won't change. <br>
However, in my case, the applications in that Realm are different.<br>
<br>
I basically see the following options to workaround it:<br>
<ol>
<li><b>Create one theme with </b><b><#if></b><b> blocks for
each application</b><br>
In this case I would need to change this template if a new
application comes in or when something changes in any of the
login pages (blocks).<br>
<br>
</li>
<li><b>Dinamically load login pages from the theme page</b><b><br>
</b>I ran this test and it worked just fine, but, I felt like I
shouldn't be doing it this way... bad smell, you know? (:P)<br>
The theme login page loads a static login page of each
application using the <b>client_id</b> variable. Then, places
the contents on the current page and sets the necessary elements
to Keycloak expected values (like form action, forgot password
and register user links URLs, error messages, etc).<br>
For each new application, all I have to do is create the static
resources in a <b>/themes/${client_id}</b> folder, with the
correct element IDs and it does the trick.<br>
Of course there are some drawbacks, but it turns out that I have
now 3 applications using this approach. I wish I could have
per-application themes, rather.<br>
<br>
</li>
<li><b>Convince my client to use the same login page for all
applications</b><b><br>
</b>This would be the standard approach, but, unfortunatelly,
isn't an option for me.<br>
</li>
</ol>
<div class="moz-signature">
<p>Any thoughts on that?<br>
</p>
<p>Thanks in advance.<br>
</p>
<p>Regards,</p>
<p>Marcio Fernandes de Lima<br>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/marcioferlan">http://linkedin.com/in/marcioferlan</a><br>
SCJP, SCWCD, MySQL Core Certified</p>
</div>
<div class="moz-cite-prefix">On 08/05/2015 02:14, Stian Thorgersen
wrote:<br>
</div>
<blockquote
cite="mid:1846112137.15439002.1431062086005.JavaMail.zimbra@redhat.com"
type="cite">
<pre wrap="">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 -----
</pre>
<blockquote type="cite">
<pre wrap="">From: "Marcio Lima" <a class="moz-txt-link-rfc2396E" href="mailto:marcioferlan@gmail.com"><marcioferlan@gmail.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
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
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/marcioferlan">http://linkedin.com/in/marcioferlan</a>
SCJP, SCWCD, MySQL Core Certified
_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a>
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>