<div dir="ltr">I just read the discussions on KEYCLOAK-292 on the developer mailing list. <a href="http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html">http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html</a><div>
<br></div><div>The concept of creating an application under the keycloak-admin realm for each realm created looks interesting.<div><br></div><div>When it comes to multi tenancy, I think the issue is around the application installation process. If there is a way where we don't have to provide individual application level keycloak.json's or WildFly/JBoss subsystem XML's, then we are getting closer to multi tenancy. I am thinking can this be done at a keycloak top level or the ability to use wildcards for the resource elements in the json.</div>
<div><br></div><div>Is LiveOak a multi tenancy platform? Wondering if they would need such a feature. </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 2:22 PM, 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"> I was initially under the impression that I can configure realms as tenants and use KeyCloak for applications that are designed for multi tenancy.<div>
<br></div><div>But now I have discovered that this is not possible, at least not possible to do it on demand. I hope I am wrong and someone can correct me.</div>
<div><br></div><div>Basically what I was trying to do was, when someone signs up to my application platform, I was going to create a realm programmatically via the API. Hence the feature request I raised to have a realm level admin <a href="https://issues.jboss.org/browse/KEYCLOAK-292" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-292</a></div>
<div><br></div><div>But that means, I will then have to either configure my Wildfly standalone.xml config with the new realm or add the installation json to my war and redeploy it. This is obviously not ideal for a on demand multi tenant application.</div>
<div><br></div><div>Maybe using Roles and create unique roles per tenant which hopefully I can do programatically via the API. I think I might be able to get something going like this but it just feels very hacky and not elegant. </div>
<div><br></div><div>Is there any other elegant way? Is Keycloak designed for multi tenancy environments?</div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Travis</div><div><br></div></font></span></div>
</blockquote></div><br></div>