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-Provi...,
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