Allow more than one challenge - multiple authenticate response-header [rfc2616 sec14.47]
Sergey Brester
serg.brester at sebres.de
Wed Apr 29 10:00:01 UTC 2015
Hi,
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:
https://github.com/sebres/nginx/commits/hg-sb-mod [1]
Regards,
sebres.
Links:
------
[1] https://github.com/sebres/nginx/commits/hg-sb-mod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150429/cdc528db/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auth-multiple-challenges.patch
Type: text/x-diff
Size: 4542 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150429/cdc528db/attachment-0001.bin>
More information about the nginx-devel
mailing list