add support for basic HTTP authentication

using the "BasicAuth" keyword in tinyproxy.conf.

base64 code was written by myself and taken from my own library "libulz".
for this purpose it is relicensed under the usual terms of the tinyproxy
license.
This commit is contained in:
rofl0r authored and rofl0r committed 2018-02-06 16:57:02 +00:00
1 parent 1ebfd2a2d1
commit 8db511b9bf
7 files changed
+210

No files matched your search

+5
View File
@@ -215,6 +215,11 @@ MaxRequestsPerChild 0
#
Allow 127.0.0.1
# BasicAuth: HTTP "Basic Authentication" for accessing the proxy.
# If there are any entries specified, access is only granted for authenticated
# users.
#BasicAuth user password
#
# AddHeader: Adds the specified headers to outgoing HTTP requests that
# Tinyproxy makes. Note that this option will not work for HTTPS