Skip to content

Commit 33d8083

Browse files
committed
added note about auth param
1 parent 0abc926 commit 33d8083

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
@@ -542,4 +542,28 @@ The following request will trigger an `Illegal repeated parameter name` violatio
542542
http://localhost/query?a=true&a=false
543543
```
544544
545-
The request will _not be blocked_ because this violation is set to alarm in the default policy.
545+
The request will _not be blocked_ because this violation is set to alarm in the default policy.
546+
547+
### Authenticating External References with Basic Auth
548+
549+
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`).
550+
551+
**Example:**
552+
553+
```json
554+
{
555+
"name": "external_references_custom_response",
556+
"template": {
557+
"name": "POLICY_TEMPLATE_NGINX_BASE"
558+
},
559+
"applicationLanguage": "utf-8",
560+
"enforcementMode": "blocking",
561+
"responsePageReference": {
562+
"link": "https://securedomain.com:8081/response-pages.txt",
563+
"basicAuth": {
564+
"user": "<user>",
565+
"passwordBase64": "<password>"
566+
}
567+
}
568+
}
569+
```

0 commit comments

Comments
 (0)