pub fn authenticate(
auth: &McpAuthState,
headers: &HeaderMap,
) -> Result<McpPrincipal, AuthFailure>Expand description
authenticate_for with the authority taken from the Host header.
The middleware calls authenticate_for directly so it can fall back to
the URI authority for HTTP/2; this wrapper is the plain entry point kept
for direct callers (and exercised throughout the tests below).