p2-inc / keycloak-events

Useful Keycloak event listener implementations and utilities.
https://phasetwo.io
Other
194 stars 37 forks source link

#66 Fix-event-webhook #72

Closed rtufisi closed 2 months ago

rtufisi commented 2 months ago

From what I understand: Keycloak event:

"AdminEvent" : {
authDetails: {
    "realmId" -realm of the user which is loggedIn;
    "userId" - logged inUser;
}
......
realmId: "realm on which the action is performed"
}

Extended event(the one send in the webhook)

`ExtendedAdminEvent.extAuthDetails `must contain the
    realmId -realmId  on which the action is performed
    userId - user which performs the action (user which you are logged in and performs the action - it can be from master realm or another realm )