Hi,
we're currently implementing a small custom Authenticator to mirror some legacy behaviour, and we need to send an email to the user in there. I've implemented this now with a regular EmailSenderProvider, which I can acquire with 'keycloakSession.getProvider(...)'. I can see there's also a FreeMarkerEmailTemplateProvider class in the org.keycloak.email package, which would be much more convenient to actually template the email using a (plain text and html?) freemarker template. However, using 'keycloakSession.getProvider(FreeMarkerEmailTemplateProvider.class)' seems to just return null. So I suppose I have 2 questions:
1.) Can the FreeMarkerEmailTemplateProvider be acquired in an SPI?
2.) If the answer is yes, where in the resulting JAR do the templates need to be so they can be accessed by the Provider?
Best regards,
--
Simon Levermann
Software Development Expert Cross Product Services
simon.l...@eventim.de |
www.eventim.de <
http://www.eventim.de>
CTS EVENTIM Solutions GmbH | Contrescarpe 75A | D- 28195 Bremen
Verwaltungsanschrift: Contrescarpe 75A– D- 28195 Bremen // Geschäftsführer: Alexander Ruoff, Christoph Bodi
Sitz: Bremen, HRB 19598 – Ust.-ID Nr.: DE 211161916