[keycloak-user] Keycloak, Multitenancy and Dynamic Configuration

Thomas Raehalme thomas.raehalme at aitiofinland.com
Thu May 26 00:27:30 EDT 2016


Hi!

I did a PoC where I first loaded a template from a generic keycloak.json.
Then before actually building the KeycloakDeployment I applied tenant
specific changes. Mainly I set tenant specific values for identifiers such
as the realm name, keys and secrets. I used the set methods as you
presumed. Finally I created a separate KeycloakDeployment for each tenant.
This was all part of the KeycloakConfigResolver implementation.

Best regards,
Thomas
On May 25, 2016 23:25, "John D. Ament" <john.d.ament at gmail.com> wrote:

> Hey,
>
> So far, Keycloak seems awesome.  Kudos to you guys for getting something
> working so well.
>
> I'm curious about using Keycloak for multienancy.  It seems like in theory
> what I'm looking for should work, but wanted to confirm.  I have a
> multitenant app.  The app will dynamically create tenants at runtime, so
> not configuration pre-deployment.  If I'm reading correctly, I just need to
> build a dynamic KeycloakDeployment at runtime.  Is it possible to configure
> this not off of JSON files?  Do I just have to call the setter on the
> various KeycloakDeployment methods?
>
> John
>
> _______________________________________________
> 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/20160526/c73a4c07/attachment-0001.html 


More information about the keycloak-user mailing list