pub async fn run_service_with_decoder(
config: ProxyConfig,
rx: Receiver<()>,
decode_credentials: fn(&str, &str) -> Result<String, AuthProxyError>,
) -> impl Future<Output = Result<(), Error>>
Expand description
Runs the proxy with a credential decoder function. It should be with the signature :
use hyper_auth_proxy::errors::AuthProxyError;
type F = fn(&str, &str) -> Result<String, AuthProxyError>;