Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. From the application selector side menu (F2 or button top left) choose the Settings application.

  2. Go to Integration / Hawksearch where you’ll find the settings for the connector.

  3. Make sure Use permission filtering is enabled.

  4. From the application selector side menu (F2 or button top left) choose the Roles application.

  5. Create a role called Unauthenticated Users.

  6. From the application selector side menu (F2 or button top left) choose the Users application.

  7. Edit the public user.

  8. Go to their roles on the menu on the left and assign them the role you just created.

  9. Create or use an existing Page Type to create two separate pages in the Pages application for you to index.

  10. In the Pages application, click on one of the pages you just created then click on Properties / Security.

  11. Add the new role to the list and make sure you check the Allow Read on the access rights.

  12. Repeat the process, but for the second page and this time make sure you check the Deny Read on the access rights.

  13. Re-index the index - Kentico: Indexing API Overview

  14. Go to the live MVC application after setting up the widgets - Kentico: Working with widgets .

  15. Perform a search.

  16. If everything worked correctly, you should not see the page you denied permissions for.

...

When the index is created and Filter by Permissions is turned on in the Hawksearch configuration each document is sent with fields specifying users in which roles are permitted to view the document. As mentioned in the Search Workflow when a search request is made it contains the roles of the user making the request. Hawksearch then compares these roles with the permissions of each document and determines whether the user can view the document.