Skip to content

Commit 85af22e

Browse files
remove fields
1 parent 77aab3e commit 85af22e

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,4 @@ As an example, to send the header `x-send-jwt-claim-user` request header to the
3434
4. Enter a rule name and a filter expression, if applicable.
3535
5. Choose **Set dynamic**.
3636
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 you want to add to the header.
38-
39-
## Available fields
40-
41-
You can create [custom rules](/waf/custom-rules/) using more claims present in tokens processed by [JWT Validation](/api-shield/security/jwt-validation/).
42-
43-
| Name | Field |
44-
| --- | --- |
45-
| [JWT Registered Claim - Audience](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3) | `http.request.jwt.claims.aud` <br /> `http.request.jwt.claims.aud.names` <br /> `http.request.jwt.claims.aud.values` |
46-
| [JWT Registered Claim - Issued At](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6) | `http.request.jwt.claims.iat.sec` <br /> `http.request.jwt.claims.iat.sec.names` <br /> `http.request.jwt.claims.iat.sec.values`|
47-
| [JWT Registered Claim - Issuer](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1) | `http.request.jwt.claims.iss` <br /> `http.request.jwt.claims.iss.names` <br /> `http.request.jwt.claims.iss.values`|
48-
| [JWT Registered Claim - JWT ID](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7) | `http.request.jwt.claims.jti` <br /> `http.request.jwt.claims.jti.names` <br /> `http.request.jwt.claims.jti.values`|
49-
| [JWT Registered Claim - Not Before](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5) | `http.request.jwt.claims.nbf.sec` <br /> `http.request.jwt.claims.nbf.sec.names` <br /> `http.request.jwt.claims.nbf.sec.values`|
50-
| [JWT Registered Claim - Subject](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2) | `http.request.jwt.claims.sub` <br /> `http.request.jwt.claims.sub.names` <br /> `http.request.jwt.claims.sub.values`|
51-
| [Session identifier](/api-shield/get-started/#session-identifiers) | `cf.api_gateway.auth_id_present`|
52-
| [Schema Validation](/api-shield/security/schema-validation/) | `cf.api_gateway.request_violates_schema`|
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 you want to add to the header.

0 commit comments

Comments
 (0)