Setting action parameters

As an example, let’s look at setting action parameters for the user ID input form in the application (see Figure 272). Various user ID values are entered in this field, i.e. The value of this field can only be an integer.

image396

Figure 272 – User ID entry form

To configure action parameters:

  1. Create an action for the user ID input form (creating actions is described in the section 15 section). To edit the action parameters, you must click on “image397” in the upper left corner of the created action (see Figure 273).

image398

Figure 273 – Action parameters editor

  1. Go to the action settings for the ID field (see Figure 274).

image399

Figure 274 – Setting action parameters

  1. Select the model class “Number” and click “Save” (see Figure 275).

image400

Figure 275 – Editing the model for the ID field

The action with configured model parameters for the ID field is shown in Figure 276.

image401

Figure 276 – Action with configured parameters

As a result, settings in subsequent requests that violate the generated model will cause ActionParameterValidator detector anomalies and the request will be blocked.