configure_oauth
Configure OAuth 2.0 authentication for a scan configuration with grant types including authorization code, client credentials, resource owner password, and implicit.
Instructions
Configure OAuth 2.0 authentication 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>",
"grant_type": "<grant_type>",
"token_url": "<token_url>",
"client_id": "<client_id>",
"client_secret": "<client_secret>"
},
"name": "configure_oauth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | OAuth scope (space-separated) | |
| password | No | Password (for resource_owner_password grant) | |
| username | No | Username (for resource_owner_password grant) | |
| client_id | Yes | OAuth client ID | |
| token_url | Yes | Token endpoint URL | |
| grant_type | Yes | OAuth grant type | |
| redirect_uri | No | Redirect URI (for authorization_code grant) | |
| client_secret | Yes | OAuth client secret | |
| scan_config_id | Yes | The unique identifier of the scan configuration | |
| authorization_url | No | Authorization URL (for authorization_code grant) |