Versions Compared

Key

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

Goal

This article provides information on how to use the filter by permissions mechanism feature and how it works.

Prerequisite

Info

Installed Configured Connector - Installing the Connector Configure Hawksearch

Steps to configure filtering by

...

Permissions

  1. Create a user and assign him a role

  2. Open or create a Sitefinity page

  3. Place the Hawksearch box and Hawksearch results widgets

  4. Open the widget designer of each widget and click the checkbox

...

Filter by permissions workflow

Info

When filtering is active the connector exposes endpoints for the search and autocomplete queries making it work as a proxy.

  1. Typing in the search box triggers the connector’s autocomplete endpoint. Searching triggers the connectors search endpoint.

  2. A server-side call to the Hawksearch API is made which returns the result for that request

  3. The user’s permissions are evaluated and used to filter the results server-side

  4. After the filtering is completed the results are displayed to the user though the Hawksearch result widget

...

By filtering the results on the server nobody will be able to intercept the request client-side and see the results before they were filtered.

...