[keycloak-user] Configuring KC adapter through ENV/programatically

Stian Thorgersen sthorger at redhat.com
Wed Sep 14 07:30:47 EDT 2016


What adapter? Java adapters has support to write your own config loader
(see multi-tenancy example). For JavaScript adapter make your web server
dynamically create the keycloak.json.

On 14 September 2016 at 11:30, cen <imbacen at gmail.com> wrote:

> Hi
>
> We have a Java REST microservice which is configured as a whole through
> environment variables and deployed in Docker.
>
> We can't provide production keycloak.json at Docker build time because
> then it becomes a specific container for a specific deployment. We want
> to keep the container unconfigured and neutral, ready to be deployed
> with any Keycloak server.
>
> At the moment we have an additional step in production deployment that
> copies the correct keycloak.json into a running Docker container and
> restarts it.
>
> Ideally though, we would like to provide keycloak.json through an
> environment variable or load it dynamically from etcd/zookeeper/similar.
>
> is it possible to somehow configure the Keycloak adapter at runtime?
>
>
> Best regards, cen
>
> _______________________________________________
> 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/20160914/2ad7da6a/attachment.html 


More information about the keycloak-user mailing list