run_service_with_decoder

Function run_service_with_decoder 

Source
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>;