[keycloak-user] Configure EMail failed

Dmitry Telegin dt at acutus.pro
Mon Nov 19 15:41:37 EST 2018


Hello Sofiane,

There is no built-in functionality for this, but there are at least two ways to solve it:

1. Extend EmailEventListenerProvider [1] and make it route messages to admin instead of user. The solution should be quite concise but will still require coding;
2. Use standard jboss-logging event listener and feed your logs to Logstash [2]. With it, not only you will have instant email notifications (Logstash has them OOTB), but also registration statistics with ElasticSearch [3] and visualization with Kibana [4].

The second solution is obviously more heavyweight, but also much more powerful. I suggest that you'd give it a shot, especially if you're interested in statistics and analysis.

[1] https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/events/email/EmailEventListenerProvider.java
[2] https://www.elastic.co/products/logstash
[3] https://www.elastic.co/products/elasticsearch
[4] https://www.elastic.co/products/kibana

Cheers,
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training

Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info at acutus.pro 

On Fri, 2018-10-19 at 15:14 +0200, So Be wrote:
> Hi,
> 
> as an administrator, I like to receive notifications when users log into
> Keycloak.
> I tried to configure the EMail for the realm but I got
> 
> Logged in user does not have an e-mail.
> 
> Any idea about what causing this?
> 
> Thank you.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list