configure_form_auth
Set up form-based login for a scan configuration: define username/password fields, test credentials, and optional regex patterns to confirm successful authentication.
Instructions
Configure form-based authentication (username/password login) for a scan configuration
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scan_config_id": "<scan_config_id>",
"username_field": "<username_field>",
"password_field": "<password_field>",
"username": "<username>",
"password": "<password>"
},
"name": "configure_form_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Test password to use for authentication | |
| username | Yes | Test username to use for authentication | |
| password_field | Yes | Form field name for password (e.g., 'password', 'pass') | |
| scan_config_id | Yes | The unique identifier of the scan configuration | |
| username_field | Yes | Form field name for username (e.g., 'username', 'email') | |
| logged_in_regex | No | Regex pattern to detect successful login (e.g., 'Welcome|Dashboard') | |
| login_link_regex | No | Regex pattern to find login page links | |
| logout_link_regex | No | Regex pattern to detect logout links to avoid |