pickup environment variables in a custom provider

157 views
Skip to first unread message

Haiko van der schaaf

unread,
Jul 20, 2023, 3:19:27 AM7/20/23
to Keycloak User

Hi,

I am searching for the solution how a custom provider can pick up environment variables from a Docker file. I am trying to use the apporach listed on this page https://www.keycloak.org/server/configuration-provider but it seems not to work. Does anyone has an example on how to get a variable from a Docker file into a custom provider?


Thanks in advance,


Haiko

Niko Köbler

unread,
Jul 20, 2023, 10:02:37 AM7/20/23
to Keycloak User
The approach in the linked guide works reliably, I'm using this throughout many of my extensions.
Tell us what you implemented in your factory method and which env vars you set, the we hopefully can help you.

Reply all
Reply to author
Forward
0 new messages