Incorrect excerpt with HtmlContentInBodyWithRequestsProcessor on secured pages
We are using Coveo for Sitecore version: 3.0.1084.0 and Sitecore version: 8 update 4. HtmlContentInBodyWithRequestsProcessor is enabled and works for unsecured pages (valid excerpt, full text search). On secured pages, the following invalid excerpt is generated:
Full text search on the rendered page content also does not work for the secured pages. We do not see anything that seems relevant in the Coveo logs.
How can we correct this?
The Coveo processor that gets the HTML of the page is simply doing an HTTP request to the published web page to get the content. If the page is secured and your business logic is redirecting the user to a login page, the login page will be indexed as the body of the secured pages.
That is unless you provide the processor with valid credentials to use on your login page. You can follow this guide on how to do it: https://developers.coveo.com/display/SitecoreV4/Configuring+Form+Authentication