Form authentication allows you to index the HTML of your Sitecore items that can only be accessed while being authenticated. This method uses the credentials entered in the
Coveo.SearchProvider.Custom.config, which are initially configured during the installation of the Coveo for Sitecore package, to log in.
One of the use cases of this method is with the
HtmlContentInBodyWithRequestsProcessor pipeline, which uses an
Http Get request to fetch the content of a page at indexing time, and attempts a form authentication using the
Post method when the page is secured.
To configure your processor to allow form authentication, follow these steps:
- Open the
Coveo.SearchProvider.Custom.configfile. It is usually located under
defaultIndexConfigurationnode, add the following nodes:
Enter the following information in the nodes:
formsAuthLoginPage: the URL of your login page.
idof the username text field.
idof the password text field.
formsAuthLoginCommand: Enter the
nameof the button and its
value, with the following syntax:
- Save and close the file.
- Rebuild your indexes (see Rebuilding Your Search Indexes).