Early Request Validator rule
Rule to perform generic validation steps on requests before authentication
- The Early Request Validator rule executes before authentication.
- The Authorized Request Validator rule executes after authorization.
Rule fields include:
Field | Description |
---|---|
When this rule should be applied | An expression that defines one or more conditions that must be
true for the rule 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 rule |