/
Destination Connection - OAuth2

Destination Connection - OAuth2

The Sitecore OAuth2 implementation is not currently working because it expects a token expiry date. The public API endpoint is available instead.

Create a new Connected App in Salesforce. Find the App Manager in setup, and click New Connected App at top right. Enable OAuth settings and set the Callback URL to “https://oauth.pstmn.io/v1/callback” to allow testing interactive flows with Postman, or whatever value you require (not used by Sitecore). Select the appropriate scopes, e.g. api. Retrieve the Client ID and Secret once created.

Create a new Connection of type Destination in Sitecore CDP & Personalize. Use OAuth2 authentication with the following settings:

  • Token URL: https://<salesforce.domain>/services/oauth2/token

  • Client ID: from Connected App

  • Client Secret: from Connected App

The Salesforce client credential flow should be be used here. Click Show URL encoded form and add the required values.

Client credentials flow

  • grant_type: client_credentials

The endpoint should be https://<salesforce.domain>/services/apexrest/cdp4sapi/guestdata.

Related content

Destination Connection - public API notification
Destination Connection - public API notification
More like this
JWT Bearer Flow Guide
JWT Bearer Flow Guide
More like this
Install S4MC (Sitecore for Marketing Cloud)
Install S4MC (Sitecore for Marketing Cloud)
More like this
Configuring the Partner API Web Service (Pre-Sitecore 9)
Configuring the Partner API Web Service (Pre-Sitecore 9)
More like this
Configure API site
Configure API site
More like this
Configuring the Partner API Web Service
Configuring the Partner API Web Service
More like this