Connect to your Pardot app for OAuth.
To create a Pardot app and acquire the app credentials, please follow the steps mentioned below:
Gear
icon in the top right and select Open Advanced Setup
button.Apps
> App Manager
options from the left side menu under Platform Tools
section.New Connected App
button in the setup page.Enable OAuth Settings
checkbox.Apps catalog
> Search for Pardot
> Settings
> Use your credentials
> Callback Url
.Save
button and click Continue
.
Manage Consumer Details
button under the API (Enable OAuth Settings) section, verify your identity and copy the Consumer Key and Consumer Secret.App settings page lets you configure the authentication settings for an OAuth2
based application. For your customers to provide you authorization to access their data,
they would first need to install your application. This page lets you set up your application credentials.
Provide the acquired Client ID and Client Secret under Settings of the app and save it.
Cobalt lets you configure what permissions to ask from your users while they install your application. The scopes can be added or removed from the App settings page, under Permissions & Scopes
section.
For some applications Cobalt sets mandatory scopes which cannot be removed. Additional scopes can be selected from the drop down. Cobalt also has the provision to add any custom scopes supported by the respective platform.
Once the scopes has been added to the application in Cobalt, go to your Salesforce developer account dashboard and update the scopes as added on Cobalt.
Navigate to Apps
> App Manager
> Select the OAuth App created for Cobalt > Click on the dropdown menu > Select Edit
> Selected OAuth Scopes
> Add the scopes as added in Cobalt and click on Save
.
If you are facing scopes missing or invalid scope error. Make sure you are not passing any custom scope not supported by the platform. And, the scopes selected here are identical to the ones selected in the platform.