Added --web-auth option to require authentication to access the webserver.

BasicHTTPAuth plugin now issues 401 on bad credentials to allow the user to try again.
This commit is contained in:
josedpedroso
2018-07-05 00:48:08 +01:00
parent 38b77714a9
commit 8964adf111
4 changed files with 72 additions and 40 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ class ProxyRequestHandlerTestCase(unittest.TestCase):
self.handler.server.target_port = "someport"
self.assertRaises(auth_plugins.AuthenticationError,
self.handler.validate_connection)
self.handler.auth_connection)
self.handler.server.target_host = "someotherhost"
self.handler.validate_connection()
self.handler.auth_connection()