This plugin call a webhook whenever an event is created from within Keycloak.
WEBHOOK_EVENTS_TAKEN (optional)
is the list of events created from Keycloak, that are listened by the plugin. Example:"LOGIN,REGISTER,LOGOUT"
. If not specified, will take all.
WEBHOOK_HTTP_BASE_PATH
is the endpoint where the webhook request is going to be sent. Example: https://localhost:3000WEBHOOK_HTTP_AUTH_USERNAME (optional)
is the basic auth username. Example "admin".WEBHOOK_HTTP_AUTH_PASSWORD (optional)
is the basic auth password. Example "password".
This part is heavily inspired from the keycloak-event-listener-rabbitmq plugin.
WEBHOOK_AMQP_HOST
is the host url of the rabbitmq server. This key will indicate that the amqp client is being used.WEBHOOK_AMQP_USERNAME
is the username of the rabbitmq serverWEBHOOK_AMQP_PASSWORD
is the password of the rabbitmq serverWEBHOOK_AMQP_PORT
is the port of the rabbitmq serverWEBHOOK_AMQP_VHOST (optional)
is the vhost of the rabbitmq serverWEBHOOK_AMQP_EXCHANGE
is the exchange of the rabbitmq serverWEBHOOK_AMQP_SSL (optional)
is to indicate if we're using SSL or not. Values are "yes" or "no"
Go to Realm Settings -> Events -> Event listeners and add "listener-webhook" to the list.