The SonicOS API enables administrators to configure, manage, and monitor the firewall programmatically using RESTful API calls. The API configuration options provide granular control over authentication methods, cryptographic security schemes, and cross-origin resource access.
The Cross-Origin Resource Sharing (CORS) feature is supported in SonicOS 7.3.4 and later versions.
To enable SonicOS API and configure client authentication
| Settings | Description |
|---|---|
| CORS |
Enables Cross-Origin Resource Sharing (CORS) support for API requests to protect against unauthorized cross-origin requests while allowing trusted external integrations, such as custom web portals, external dashboards, and third-party web clients. |
| Allow CORS Origins |
Specify the comma-separated list of trusted web origins allowed to query the firewall API. This field is active when CORS is enabled. CORS Origin Formatting Rules:
|
| Settings | Description |
|---|---|
| RFC-7616 HTTP Digest Access authentication | Enables RFC-7616 digest access authentication for API requests. |
| Digest algorithms |
Select the cryptographic hash algorithms supported for digest authentication:
|
| Integrity protection |
Configure the quality of protection message integrity verification:
|
| Use session variant (password hashes in place of passwords) |
Configure the use of session-based keying:
|
| Settings | Description |
|---|---|
| CHAP authentication | Enables Challenge Handshake Authentication Protocol (CHAP) for API access. |
| RFC-2617 HTTP Basic Access authentication |
Enables legacy RFC 2617 HTTP Basic authentication (credentials transmitted as base64-encoded strings). Ensure HTTPS is strictly enforced when using Basic authentication. |
| Settings | Description |
|---|---|
| Public Key authentication | Enables public key authentication for the SonicOS API. |
| RSA modulus (key/cipher size in bits) | Specify the RSA key size in bits. The default value is 1024. |
| RSA padding type |
Select the RSA padding scheme:
|
| OAEP hash method |
Select the hashing algorithm used by OAEP:
This field is available only when the RSA padding type is set to OAEP. |
| OAEP mask (MGF1) method |
Select the Mask Generation Function (MGF1) hash algorithm:
This field is available only when the RSA padding type is set to OAEP. |
| Settings | Description |
|---|---|
| Session security using RFC-7616 Digest authentication | Enforces session security validation using RFC-7616 Digest parameters across active API sessions. |
| Maximum nonce use | Specify the maximum number of server nonce reuses allowed before renegotiation. The default value is 10. |
| Non-GUI Management Login Bearer Token Session Check |
Enforces validation checks on Bearer Token sessions created by non-GUI management clients and scripts to prevent unauthorized session reuse.
|