Skip to content

Commit de82c48

Browse files
authored
[API Shield] Minor tweaks to Transform Rules section (#19043)
1 parent 2645931 commit de82c48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/api-shield/security/jwt-validation/transform-rules.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ lookup_json_string(http.request.jwt.claims["<TOKEN_CONFIGURATION_ID>"][0], "clai
2626

2727
## Create a Transform Rule
2828

29-
As an example, to send the header `x-send-jwt-claim-user` request header to the origin, you must create a Transform Rule:
29+
As an example, to send the `x-send-jwt-claim-user` request header to the origin, you must create a Transform Rule:
3030

3131
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
3232
2. Go to **Rules** > **Transform Rules**.
3333
3. Select **Modify Request Header** > **Create rule**.
3434
4. Enter a rule name and a filter expression, if applicable.
3535
5. Choose **Set dynamic**.
36-
6. Set the header name.
37-
7. Set the value to `lookup_json_string(http.request.jwt.claims["<TOKEN_CONFIGURATION_ID>"][0], "claim_name")`, where `<TOKEN_CONFIGURATION_ID>` is your token configuration ID found in JWT Validation and `claim_name` is the [JWT claim](/ruleset-engine/rules-language/fields/dynamic-fields/#json-web-tokens-validation-claims) you want to add to the header.
36+
6. Set the header name to `x-send-jwt-claim-user`.
37+
7. Set the value to `lookup_json_string(http.request.jwt.claims["<TOKEN_CONFIGURATION_ID>"][0], "claim_name")`, where `<TOKEN_CONFIGURATION_ID>` is your token configuration ID found in JWT Validation and `claim_name` is the [JWT claim](/ruleset-engine/rules-language/fields/dynamic-fields/#json-web-tokens-validation-claims) you want to add to the header.

0 commit comments

Comments
 (0)