Skip to content

Commit 948ae5d

Browse files
committed
added note about auth param
1 parent 6b3b5e0 commit 948ae5d

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

content/waf/policies/external-references.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,4 +548,28 @@ The following request will trigger an `Illegal repeated parameter name` violatio
548548
http://localhost/query?a=true&a=false
549549
```
550550
551-
The request will _not be blocked_ because this violation is set to alarm in the default policy.
551+
The request will _not be blocked_ because this violation is set to alarm in the default policy.
552+
553+
### Authenticating External References with Basic Auth
554+
555+
For any external reference section in your policy that uses an HTTP or HTTPS link, you can include a `basicAuth` object with the username (`user`) and the base64-encoded password (`passwordBase64`).
556+
557+
**Example:**
558+
559+
```json
560+
{
561+
"name": "external_references_custom_response",
562+
"template": {
563+
"name": "POLICY_TEMPLATE_NGINX_BASE"
564+
},
565+
"applicationLanguage": "utf-8",
566+
"enforcementMode": "blocking",
567+
"responsePageReference": {
568+
"link": "https://securedomain.com:8081/response-pages.txt",
569+
"basicAuth": {
570+
"user": "<user>",
571+
"passwordBase64": "<password>"
572+
}
573+
}
574+
}
575+
```

0 commit comments

Comments
 (0)