Skip to content

Commit 0d15d31

Browse files
committed
upd doc
1 parent 12e3488 commit 0d15d31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ Authentication parameters are passed as URI via `-auth` parameter. Scheme of URI
284284
* `method` - override HTTP request method.
285285
* `qs` - provide query string to the URL in request.
286286
* `x-forwarded` - boolean parameter specifying if X-Forwarded headers should be populated.
287+
* `reject-static` - auth provider which rejects auth and returns pre-defined response. Useful as a last auth chain element with other providers in order to customize rejection response. Example: `-auth reject-static://?code=403&body=denied.html&headers=denied.hdr`. Parameters:
288+
* `code` - optional parameter specifying HTTP response code. Default is 403.
289+
* `body` - optional parameter specifying file with response body.
290+
* `headers` - optional parameter specifying file with response headers. It uses format identical to request header file format used by `curl` program.
287291
288292
## Scripting
289293

0 commit comments

Comments
 (0)