Configure API site
CDP4S includes a public API endpoint that is suitable for receiving notifications of updated Guests. It requires the use of a shared key and performs a callback to Sitecore for security purposes.
Public Site
A Public Site is required to enable this endpoint due to limited OAuth2 support in Sitecore CDP & Personalize. In setup:
Find and click Sites. If you have not previously set up a site, accept the terms of use and click Register My Salesforce Site Domain.
Click New to create a new site.
If the site will only be for CDP4S use, we recommend the following settings:
Active Site Home Page: Unauthorized
Inactive Site Home Page: None
Site Template: None
Click Save.
If the site will not be used for other purposes we recommend you Edit the Site Visualforce Pages and remove all except Unauthorized. After the site has been created, access this setting from the Site Label link on the Sites page.
Click Public Access Settings, and find the Enabled Apex Class Access section. Click Edit and add access to FuseIT_CDP4S.PublicApi. After the site has been created, access this setting from the Site Label link on the Sites page.
It is also possible to include the CDP4S endpoint on a site that serves other content. Configure as desired.
Note:
The configured Default Record Owner will be the owner of the Guest data and master objects created as a result of notifications to this endpoint.
The endpoint URL for configuration in Sitecore will be:
https://<salesforce-sites.domain>/services/apexrest/FuseIT_CDP4S/cdp4spub/guestnotify