diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-12 23:35:16 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-12 23:35:16 +0100 |
commit | bd68b4f6781dfb7f2e147fdcfcd8466cbb747ab3 (patch) | |
tree | 2f41497d96e874b652ab2e0fd023b025bc7a1f19 /libmproxy/cmdline.py | |
parent | 1f4d031a60606fce2fd7118267a724c7f931d886 (diff) | |
parent | 195ea8e15ac3822c1524ee4742ec42ca76638876 (diff) | |
download | mitmproxy-bd68b4f6781dfb7f2e147fdcfcd8466cbb747ab3.tar.gz mitmproxy-bd68b4f6781dfb7f2e147fdcfcd8466cbb747ab3.tar.bz2 mitmproxy-bd68b4f6781dfb7f2e147fdcfcd8466cbb747ab3.zip |
Merge pull request #929 from ganguera/ganguera/basic_auth
Added Basic Auth support for MITMWeb interface
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 15 |
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( |