<div dir="ltr">We'll need more info than that. Is there any errors in the log? My best bet is that your <span style="font-size:12.8px">KeycloakConfigResolver is not returning a valid KeycloakDeployment.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 September 2015 at 04:32, Vito Vessia <span dir="ltr"><<a href="mailto:vvessia@katamail.com" target="_blank">vvessia@katamail.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 all,<div>I have to create some multi-tenant rest apis secured by keycloak, following the multi-tenant example provided by the keycloak documentation.</div><div>So, in the same way the example shows, I have some rest api like:</div><div><br></div><div>/rest/api1/name/{id}</div><div><br></div><div>and I wold like to let these api to be multi tenant using urls like this one:</div><div><br></div><div><div>/tenant1/rest/api1/name/{id} or /tenant2/rest/api1/name/{id} </div></div><div><br></div><div>I am using Jersey as Jax-RS implementation and the AS is Wildfly 9. </div><div>My KeycloakConfigResolver derived implementation seems to work well, because it receives the requests from KC and returns the correct KeycloakDeployment instance, but the rest service is never called. If I temporary disable the resolver and I define a fixed realm, everything is ok calling the url without the tenant name part.<br></div><div>Please. do you have some idea?</div><div><div>Where do I can get a complete example?</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>--Vito</div><div><br></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>