This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/website/docs/events/transports.md
Jens L f9469e3f99
website: format docs with prettier (#2833)
* run prettier

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* add scim to comparison

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
2022-05-09 21:22:41 +02:00

943 B

title
Transports

Notifications can be sent to users via multiple mediums. By default, the global email configuration will be used.

Generic Webhook

This will send a POST request to the given URL with the following contents:

{
    "body": "body of the notification message",
    "severity": "severity level as configured in the trigger",
    "user_email": "user's email",
    "user_username": "user's username"
}

The Content-Type header is set to text/json.

Starting in 2021.9, you can also select a Notification mapping. This allows you to freely configure the request's payload. For example:

return {
    "foo": context['notification'].body,
}

Slack Webhook

This sends a request using the Slack-specific format. This is also compatible with Discord's webhooks by appending /slack to the Discord webhook URL.