[keycloak-user] Multi-tenant REST api

Stian Thorgersen sthorger at redhat.com
Thu Oct 1 03:45:36 EDT 2015


We'll need more info than that. Is there any errors in the log? My best bet
is that your KeycloakConfigResolver is not returning a valid
KeycloakDeployment.

On 27 September 2015 at 04:32, Vito Vessia <vvessia at katamail.com> wrote:

> Hi all,
> I have to create some multi-tenant rest apis secured by keycloak,
> following the multi-tenant example provided by the keycloak documentation.
> So, in the same way the example shows, I have some rest api like:
>
> /rest/api1/name/{id}
>
> and I wold like to let these api to be multi tenant using urls like this
> one:
>
> /tenant1/rest/api1/name/{id}   or /tenant2/rest/api1/name/{id}
>
> I am using Jersey as Jax-RS implementation and the AS is Wildfly 9.
> 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.
> Please. do you have some idea?
> Where do I can get a complete example?
>
> --Vito
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151001/8939665d/attachment.html 


More information about the keycloak-user mailing list