pub fn authenticate_request( State: State<ServerState>, req: &Request<Body>, ) -> Result<(), ErrorResponse>