Open xgp opened 4 months ago
Use the programmatic way described here (https://github.com/keycloak/keycloak/discussions/24805) to build an Admin UI for managing Webhooks.
This method will cause a duplicate ComponentModel to be stored in the database. This means:
ComponentModel
onCreate
onUpdate
preRemove
ComponentFactory
WebhookModel
WebhooksResource
Will also need to "migrate" all existing webhook entities so that they have components associated with them. Should be able to do this in a postInit.
postInit
Use the programmatic way described here (https://github.com/keycloak/keycloak/discussions/24805) to build an Admin UI for managing Webhooks.
This method will cause a duplicate
ComponentModel
to be stored in the database. This means:onCreate
/onUpdate
/preRemove
methods ofComponentFactory
to create/update/remove theWebhookModel
entities.ComponentModel
to theWebhookModel
. E.g. store the component id in the webhook entity.ComponentModel
when theWebhookModel
gets updated by theWebhooksResource
management API.