You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proxy authentication available in reverse proxy mode #4473
Currently, the proxy authentication feature is not available in reverse proxy mode. Per documentation "Proxy Authentication
Asks the user for authentication before they are permitted to use the proxy. Authentication headers are stripped from the flows, so they are not passed to upstream servers. For now, only HTTP Basic authentication is supported. The proxy auth options are not compatible with the transparent, socks or reverse proxy mode."
Proposal
Proxy authentication for reverse proxy mode.
Alternatives
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the proposal here.
i can only guess that you are hoping to use mitmproxy to provide authentication for the service it's reverse-proxying?
in that case, proxy authentication is the wrong protocol to use.
it would probably be possible to write some code that has mitmproxy perform regular http authentication, if one really wanted to.
Activity
r00t- commentedon Mar 2, 2021
can you explain the use-case you see for this?
specifically, a reverse-proxy looks like a regular server to a client, so no client should ever send
Proxy-Authorizationheaders to it, even if asked to.consider https://docs.mitmproxy.org/stable/concepts-modes/#reverse-proxy
i can only guess that you are hoping to use mitmproxy to provide authentication for the service it's reverse-proxying?
in that case, proxy authentication is the wrong protocol to use.
it would probably be possible to write some code that has mitmproxy perform regular http authentication, if one really wanted to.
fix mitmproxy#4473
mhils commentedon Mar 10, 2021
We do in fact support authentication in reverse proxy mode, mitmproxy automatically falls back to Basic Auth. I've updated the doc! 😃
monelgordillo commentedon Mar 10, 2021
Thank you! I see it.