def METHOD_NAME(self, flow: mitmproxy.http.HTTPFlow):
    if flow.METHOD_NAME.is_replay:
        logger.warning("Caught replayed request: " + str(flow))
    if (
        not self.filter or self.filter(flow)
    ) and self.auth_oracle.is_unauthorized_request(flow):
        logger.debug("unauthorized request detected, perform login")
        self._login(flow)