Proxy version of actix-web-httpauth.
You send:
Proxy-Authorization
header field instead ofAuthorization
The library may return:
407 Proxy Authentication Required
header field instead of401 Unauthorized
actix-web-httpauth-proxy = { git = "https://github.com/ryochin/actix-web-httpauth-proxy", branch = "main" }
use actix_web_httpauth_proxy::extractors::basic::BasicAuth as ProxyAuth;
use actix_web_httpauth_proxy::headers::www_authenticate::{basic::Basic, WwwAuthenticate};
use actix_web_httpauth_proxy::middleware::HttpAuthentication as HttpProxyAuthentication;