Early Request Validator Policy
Rule to perform generic validation steps on requests before authentication
- The Early Request Validator policy executes before authentication.
- The Authorized Request Validator policy executes after authorization.
Policy fields include:
| Field/Field set | Description |
|---|---|
| When this policy should be applied | An expression that defines one or more conditions that must be
true for the policy to execute.
Example: The expression |
| Validation Checks | Checks to perform on the request. |
| Condition | An expression that should return true to abort the request. Note:
You can't use the Default value: False Example: isNaN(parseInt(request.headers['X-My-Header'])) |
| Status | The HTTP Status code to use in the response. Default value: 400 (Bad Request) Example: 413 (Request Entity Too Large) |
| Response |
Example: To return a custom HTML page:
To return a Location header for a 3xx status code:
|
| Description |
A customizable description. Default value: Requests are being validated against specified policy |