Skip to content

feat: add kratos webhook header allowlist config details #2100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/guides/integrate-with-ory-cloud-through-webhooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ template as well. These objects are available through a `ctx` object.

#### Accessing request headers

The following request headers are available via `ctx.request_headers`:
Request headers are available via `ctx.request_headers`. By default, only the following headers are exposed:

```
Accept
Expand All @@ -113,6 +113,8 @@ True-Client-Ip
User-Agent
```

To customize allowed headers, use the `actions.web_hook.header_allowlist` configuration option.

#### Jsonnet templating

To send `{ user_id: {some-id} }` in the request body, create the following the [Jsonnet](https://jsonnet.org) template:
Expand Down
Loading