Allow more than one challenge - multiple authenticate response-header [rfc2616 sec14.47]

Sergey Brester serg.brester at
Wed Apr 29 10:00:01 UTC 2015



enclosed you will find an attached changeset, that allows more than one
authentication challenge - multiple authenticate response-header
[rfc2616 sec14.47].

Implemented for auth_request and http upstream (ex. backends).

If you want to support it in your own authentication module, just call
`ngx_http_upstream_transmit_headers` after setting
`headers_out.www_authenticate` of request, like in both implemented
modules (see changeset attached).
For upstreams simply add a multiple header entries with
www-authentificate challenges, supported from your module.

PS. If someone needs a git version of it: [1] 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auth-multiple-challenges.patch
Type: text/x-diff
Size: 4542 bytes
Desc: not available
URL: <>

More information about the nginx-devel mailing list