pub trait HttpRequestSigner: Send + Sync + Debug {
    // Required method
    fn sign_request(
        &self,
        request: &mut HttpRequest,
        identity: &Identity,
        auth_scheme_endpoint_config: AuthSchemeEndpointConfig<'_>,
        config_bag: &ConfigBag
    ) -> Result<(), BoxError>;
}

Required Methods§

source

fn sign_request( &self, request: &mut HttpRequest, identity: &Identity, auth_scheme_endpoint_config: AuthSchemeEndpointConfig<'_>, config_bag: &ConfigBag ) -> Result<(), BoxError>

Return a signed version of the given request using the given identity.

If the provided identity is incompatible with this signer, an error must be returned.

Implementors§