Skip to main content

check_auth

Function check_auth 

Source
pub fn check_auth(
    req: &HttpRequest,
    config: &ControlPlaneConfigHandle,
) -> Result<(), HttpResponse>
Expand description

Check authentication on an HTTP request. Returns Ok(()) if authenticated, Err(response) with 401 if not.