[keycloak-dev] Keycloak 1.9.1: Theme: pass eventtype to eventlistener?

Stian Thorgersen sthorger at redhat.com
Tue Apr 18 09:06:39 EDT 2017


This list is for development of Keycloak itself. Please use the user
mailing list for help.

On 12 April 2017 at 16:02, <christian.polzer at kaufland.com> wrote:

>
>
> Hello,
>
> I have implemented a custom EventListenerProvider to use with a custom
> registration form template ("login/register.ftl").
> Now I am having problems distinguishing incoming events from the login.ftl,
> register.ftl and so on templates. as I understand it in my
> EventListenerProvider the entry point is the implemented onEvent(Event
> event)method.
>
> Unfortunatelly the events that get passed through from the template to the
> keycloak backend into my EventListenerProvider seem to be missing event
> type information:
> Incoming Event is:{
> "clientId": "internet-master-client",
> "details": {
>    "auth_method": "openid-connect",
>    "auth_type": "code",
>    "code_id": "5ba2de19-e7f4-4274-9054-d71343c21c96",
>    "email": "test at test.com",
>    "redirect_uri": "https://www.test.com/",
>    "username": "test at test.com"
> },
> "ipAddress": "...",
> "realmId": "users",
> "time": 1492001884000,
> "type": {"saveByDefault": true}, // type is not set?
> "userId": "b...."
>
> }
>
> This makes it impossible for me to distinguish between EventTypes and send
> Mail accordingly.
>
> What am I missing (apart from beeing new to keycloak development)?
>
> Regards,
>
> Christian Polzer
>
> Mit freundlichen Grüßen
> Christian Polzer
>
> Anwendungsentwicklung NonSAP
> +49 7132 94 920383
>
> Kaufland Informationssysteme GmbH & Co. KG
> Postfach 12 53 - 74172 Neckarsulm
> Kommanditgesellschaft
> Sitz: Neckarsulm
> Registergericht: Stuttgart HRA 104163
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>


More information about the keycloak-dev mailing list