Send notifications to an HTTP endpoint
This guide explains how to send the notifications of Casdoor to an HTTP endpoint of your own, for example a webhook of your application.
Learning outcomes
- Configure a Custom HTTP notification provider.
- Understand the request that Casdoor sends, including the recipient.
What you need
- An HTTP endpoint that accepts
GETorPOSTrequests - Administrator access to the Casdoor admin console
Add the provider
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Notificationand Type toCustom HTTP. -
Fill in the fields:
Поле Опис Метод GETorPOSTParameter Name of the query parameter ( GET) or form field (POST) that carries the messageЗміст The message or a template for it Кінцева точка Complete HTTP or HTTPS URL that Casdoor calls 
-
Save the provider.