p2-inc / keycloak-events

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

QUESTION | Is there any documentation on the data models that are sent with configured webhooks? #62

Closed alainkaiser closed 4 months ago

alainkaiser commented 4 months ago

After some research, I could successfully setup a Webhook (currently for all possible events) and test the Webhook via pipedream. Works great!

The plan now is that I will address a custom web API (written in .NET) via webhook. What I am currently asking myself: Can I find documentation somewhere on the data models that are sent for the various events?

Thanks in advance for an answer!

xgp commented 4 months ago

There is some documentation here: https://phasetwo.io/docs/audit-logs/api/#field-definitions

Also, the object (ExtendedAdminEvent) that gets serialized (by jackson) is defined here:

If you're not familiar with jackson, it just takes an object and calls all the get methods, unless the method is annotated with JsonIgnore. It generates the key name with the part after the get, unless the method is annotated with JsonProperty.

alainkaiser commented 4 months ago

@xgp Thank you very much, I really appreciate your answers and will read up on them.