Wrong event type when using MQTTEventListenerProvider

Hi,

I’m using GitHub - softwarefactory-project/keycloak-event-listener-mqtt: A Keycloak SPI that publishes events to a MQTT broker. - plugin from official extension list. When I login and logout to my app I can see the following logs in Keycloak admin panel:

However, the logs in Docker container with my app has the following logs (most event data removed):

//Login operation

[org.softwarefactory.keycloak.providers.events.mqtt.MQTTEventListenerProvider] (executor-thread-24) Event: {"error":null,"type":"LOGIN"}

//Logout operation

WARN  [org.keycloak.events] (executor-thread-26) type="LOGOUT_ERROR", userId="null", ipAddress="127.0.0.1", error="session_expired"
INFO  [org.softwarefactory.keycloak.providers.events.mqtt.MQTTEventListenerProvider] (executor-thread-24) Event: {"error":null,"type":"LOGIN"}
WARN  [org.keycloak.events] (executor-thread-26) type="LOGOUT_ERROR", error="session_expired"

Why the MQTTProvider sends two LOGIN operation instead of one Loign event and one Logout event?

That list is only “official” in that it’s published on their site. They don’t provide any support for those extensions. I would suggest contacting the extension author on their GitHub issues.