We apply xsl transforms in the Dockerfile to update xml files during the dockerfile build
process.
Here is an example that involves the keycloak image where several updates are being
applied to the xml file:
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org <keycloak-user-
bounces(a)lists.jboss.org> On Behalf Of Lukasz Lech
Sent: Friday, October 5, 2018 10:11 AM
To: keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] Using your SPI provider instead of default one
CAUTION: This email originated from outside of the organization. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
Thank you,
I've just found out that myself by looking at the examples in source code
repository.
It looks it's not in the official documentation, or it's hard to find...
Now I'm scratching my head how to do that modification during docker image
build without using regex-based tools like sed...
Best regards,
Lukasz Lech
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org [mailto:keycloak-user-
bounces(a)lists.jboss.org] On Behalf Of Don Reynolds (dreynold)
Sent: Freitag, 5. Oktober 2018 15:50
To: keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] Using your SPI provider instead of default one
Hello Lukasz,
While I am not sure you can select the EmailTemplateProvider on a per realm
basis, based on an old keycloak-user mailing list item, it looks like you can set
it system wide in the standalone.xml.
In
http://keycloak-user.88327.x6.nabble.com/keycloak-user-Custom-Email-
Provider-td2702.html, it mentions adding an entry for the emailTemplate SPI
in the " <subsystem
xmlns="urn:jboss:domain:keycloak-server:1.1">" node
which references your custom spi provider.
Hope that helps.
If you find a way to set it on a per realm basis I would also be interested in
that solution also.
Don
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org <keycloak-user-
bounces(a)lists.jboss.org> On Behalf Of Lukasz Lech
Sent: Friday, October 5, 2018 4:53 AM
To: keycloak-user(a)lists.jboss.org
Subject: [keycloak-user] Using your SPI provider instead of default one
Hello,
There is something that I have missed in provider's documentation (
https://www.keycloak.org/docs/3.3/server_development/topics/providers.
htm ).
I've implemented my own SPI (EmailTemplateProvider -mock
implementation that logs on console using slf4j instead of sending anything).
I've dropped jar in deployments folder. I see message my SPI got registerd
and it's listed in server info.
However, when I try to register, a default (freemarker) email template
provider is called.
How can I choose, which SPI will be used for my realm? Or there can be only
one?
Best regards,
Lukasz Lech
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user