aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/cmdline.py
diff options
context:
space:
mode:
authorGuillem Anguera <ganguera@gmail.com>2016-02-11 00:14:38 +0100
committerGuillem Anguera <ganguera@gmail.com>2016-02-11 00:14:38 +0100
commit53065234466918daf36ebe6d3b10d264979fc8ae (patch)
tree4b691692d1fa559219e2159a64b1eb62886dbf99 /libmproxy/cmdline.py
parentb0dc44428e526d67cddcd2ebf9d43565098850cb (diff)
downloadmitmproxy-53065234466918daf36ebe6d3b10d264979fc8ae.tar.gz
mitmproxy-53065234466918daf36ebe6d3b10d264979fc8ae.tar.bz2
mitmproxy-53065234466918daf36ebe6d3b10d264979fc8ae.zip
Added Basic Auth support for MITMWeb interface
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r--libmproxy/cmdline.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py
index d8b6000c..b1cbfa3a 100644
--- a/libmproxy/cmdline.py
+++ b/libmproxy/cmdline.py
@@ -760,6 +760,21 @@ def mitmweb():
action="store_true", dest="wdebug",
help="Turn on mitmweb debugging"
)
+ group.add_argument(
+ "--wsingleuser",
+ action="store", dest="wsingleuser", type=str,
+ metavar="USER",
+ help="""
+ Allows access to a a single user, specified in the form
+ username:password.
+ """
+ )
+ group.add_argument(
+ "--whtpasswd",
+ action="store", dest="whtpasswd", type=str,
+ metavar="PATH",
+ help="Allow access to users specified in an Apache htpasswd file."
+ )
common_options(parser)
group = parser.add_argument_group(