/[Apache-SVN]
ViewVC logotype

Revision 1881790


Jump to revision: Previous Next
Author: jorton
Date: Thu Sep 17 11:31:43 2020 UTC (3 years, 6 months ago)
Changed paths: 5
Log Message:
mod_proxy: Add support for an optional third argument to ProxyRemote*
to configure the Basic auth credentials to send to the remote proxy.

(Note that credentials are always sent w/o waiting for a challenge as
with proxy-chain-auth, and only Basic is supported - both of which are
not exactly ideal - but better than nothing.)

* modules/proxy/mod_proxy.h (struct proxy_remote): Add creds field.

* modules/proxy/mod_proxy.c (proxy_handler): Pass forward proxy
  credentials via r->notes.
  (add_proxy): Take credentials and base64-encode into ->creds field if
  passed.
  (add_proxy_noregex, add_proxy_regex): Take optional creds argument.

* modules/proxy/proxy_util.c (ap_proxy_determine_connection):
  Use proxy credentials from r->notes if available.
  (ap_proxy_create_hdrbrgd): Set Proxy-Authorization header from
  credentials in r->notes if present.

PR: 37355
Github: closes #135


Changed paths

Path Details
Directoryhttpd/httpd/trunk/changes-entries/pr37355.txt added
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_proxy.xml modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy.h modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/proxy_util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26