MCPcopy
hub / github.com/mitmproxy/mitmproxy / auth_fail

Method auth_fail

mitmproxy/tools/web/app.py:235–239  ·  view source on GitHub ↗

Will be called when returning a 403. May write a login form as the response.

(self, invalid_password: bool)

Source from the content-addressed store, hash-verified

233 setattr(cls, method, AuthRequestHandler._require_auth(fn))
234
235 def auth_fail(self, invalid_password: bool) -> None:
236 """
237 Will be called when returning a 403.
238 May write a login form as the response.
239 """
240
241 @staticmethod
242 def _require_auth[**P, R](

Callers 1

wrapperMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected