Configuration
You must create an endpoint that is secured and authenticated by your IdentityServer that uses the scope you have selected in the webhook configuration page for authorization.
Once you have your endpoint configured, you can enable the webhook and set the config setting with the AdminUI API config with Url for your endpoint. If this field is set then on successful User creation this webhook will be triggered.
Endpoint
AdminUI expects your endpoint to meet the following requirements:
- Accept POST
- Accept JSON
- Accept an email and username in the body
The request made by AdminUI will look like the following:
Headers
Content-Type: application/json
Authorization: Bearer xyz
Body
{
"subject": "string"
"email": "string",
"username": "string"
}
Response
On a successful request a 200 OK response should be returned.
Debugging
If the call made to the endpoint returns anything other than a success code, if logging is correctly configured, a error will be logged by the API containing the returned status code.