Skip to content

Commit cfb59c3

Browse files
committed
document reject auth provider
1 parent c518c66 commit cfb59c3

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
@@ -280,6 +280,10 @@ Authentication parameters are passed as URI via `-auth` parameter. Scheme of URI
280280
* `key_prefix` - prefix to prepend to each key before lookup. Helps isolate keys under common prefix. Default is empty string (`""`).
281281
* `hidden_domain` - same as in `static` provider.
282282
* `else` - optional URL specifying the next auth provider to chain to, if authentication failed.
283+
* `reject-http`, `reject-https` - auth provider which always rejects auth and returns response fetched from specified URL. Useful as a last auth chain element with other providers in order to masquerade proxy endpoint or return custom rejection response from another webserver. Example: `-auth reject-https://www.google.com`. Parameters:
284+
* `method` - override HTTP request method.
285+
* `qs` - provide query string to the URL in request.
286+
* `x-forwarded` - boolean parameter specifying if X-Forwarded headers should be populated.
283287
284288
## Scripting
285289

0 commit comments

Comments
 (0)