Skip to content

Commit f89f118

Browse files
feedback updates
1 parent 1596544 commit f89f118

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +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.
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.

src/content/docs/ruleset-engine/rules-language/fields/dynamic-fields.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@ Identifies whether a request comes from a worker or not. When a request comes fr
514514

515515
## JSON Web Tokens Validation claims
516516

517-
[API Shield](/api-shield/) users can now create [Custom Rules](/waf/custom-rules/) using claims present in tokens processed by [JSON Web Tokens Validation](/api-shield/security/jwt-validation/).
517+
[API Shield](/api-shield/) users can now create [custom rules](/waf/custom-rules/) using claims present in tokens processed by [JSON Web Tokens Validation](/api-shield/security/jwt-validation/).
518518

519519
### `aud` (audience)
520520

521521
`http.request.jwt.claims.aud` `Map<Array<String>>` <br />
522522
`http.request.jwt.claims.aud.names` `Array<String>` <br />
523523
`http.request.jwt.claims.aud.values` `Array<String>` <br />
524524

525-
The `aud` (audience) claim identifies the recipients that the JWT is intended for. Each principal intended to process the JWT must identify itself with a value in the audience claim. In the general case, the `aud` value is an array of case-sensitive strings, each containing a StringOrURI value.
525+
The `aud` (audience) claim identifies the recipients that the JSON Web Token (JWT) is intended for. Each principal intended to process the JWT must identify itself with a value in the audience claim. In the general case, the `aud` value is an array of case-sensitive strings, each containing a `StringOrURI` value.
526526

527527
<Render file="jwt-claims" product="api-shield" />
528528

@@ -532,7 +532,7 @@ The `aud` (audience) claim identifies the recipients that the JWT is intended fo
532532
`http.request.jwt.claims.iat.sec.names` `Array<String>` <br />
533533
`http.request.jwt.claims.iat.sec.values` `Array<Integer>` <br />
534534

535-
The `iat` (issued at) claim identifies the time at which the JWT was issued.
535+
The `iat` (issued at) claim identifies the time (number of seconds) at which the JWT was issued.
536536

537537
<Render file="jwt-claims" product="api-shield" />
538538

@@ -562,7 +562,7 @@ The `jti` (JWT ID) claim provides a unique identifier for the JWT.
562562
`http.request.jwt.claims.nbf.sec.names` `Array<String>` <br />
563563
`http.request.jwt.claims.nbf.sec.values` `Array<Integer>` <br />
564564

565-
The `nbf` (not before) claim identifies the time before which the JWT must not be accepted for processing.
565+
The `nbf` (not before) claim identifies the time (number of seconds) before which the JWT must not be accepted for processing.
566566

567567
<Render file="jwt-claims" product="api-shield" />
568568

src/content/partials/api-shield/jwt-claims.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
---
55

6-
Refer to the [Registered Claim Names](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1) for more information.
6+
Refer to the [Registered Claim Names](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1) in RFC 7519 for more information.

0 commit comments

Comments
 (0)