i.e. to add my environment variables to the "login" themes.... do I need to
override "FreeMarkerLoginFormsProvider.java"?
And if so, what's best way to do this? Do I need to package an entire new
SPI (i.e.
http://www.keycloak.org/docs/3.1/server_development/topics/providers.html)?
Sorry I'm not great with Java, just trying to find my way around.
Thanks!
On 20 March 2018 at 18:37, Ben Immanuel <ben.immanuel(a)aistemos.com> wrote:
Hi there,
we have a custom keycloak theme, which contains a link. The link needs to
be different per environment (prod, staging, dev etc).
Having a separate "theme.properties" file per environment is not really an
option for us, as we want re-use the same Docker image.
So....
Can we access environment variables from "theme.properties"?
i.e. OUR_PROP=${env.SOME_ENVIRONMENT_VAR}
Or is there a way to read values from an external file?
Or can we access a particular Keycloak client's redirect url? i.e. in our
case client="Cipher2".
Or any other ideas?
I'm not too sure how the Java SPI stuff work, so any pointers would be
really appreciated.
Thanks!
Ben
--
*BEN IMMANUELSoftware EngineerAISTEMOS*
39-41 Charing Cross Rd, London, WC2H 0AR
D: +44 (0) 20 3909 9203 <+44%2020%203909%209203>
M: +44 (0) 78 6082 1673 <44+(0)+78+6082+1673>
www.cipher.ai