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

Thomas Darimont thomas.darimont at googlemail.com
Thu Sep 15 04:13:11 EDT 2016


Hello,

you can use env-variables in Keycloak.json - see paragraph after the config
example:
https://keycloak.gitbooks.io/securing-client-applications-guide/content/v/2.2/topics/oidc/java/java-adapter-config.html

Cheers,
Thomas

2016-09-14 13:30 GMT+02:00 Stian Thorgersen <sthorger at redhat.com>:

> 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
>>
>
>
> _______________________________________________
> 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/20160915/5d570885/attachment.html 


More information about the keycloak-user mailing list