Log in Using OAuth 2.0

Salesforce uses the OAuth protocol to allow users of applications to securely access (authenticate the application using OAuth 2.0) data without having to reveal login credentials. Below are the steps to be performed to securely connect and sync Marketo with Salesforce.

Set Up Connected App

  1. In Salesforce, under Setup, within the Platform Tools, navigate to Apps, App Manager, and click New Connected App.

  2. Fill in the details and click Save.

  3. Click the Enable OAuth Settings checkbox. For Callback URL, enter https://app.marketo.com/salesforce/getSfdcOAuthTokensRedirect. Select all the available OAuth Scopes and click Add.

  4. Click Save.

  5. Click Continue.

  6. Copy the Consumer Key and Consumer Secret.

NOTE

Save the Consumer Key and Consumer Secret info for later use in Marketo.

Set Up Marketo

PREREQUISITES
  • API access must be enabled for the Salesforce Sync User (if you’re a Salesforce Professional Edition user, that access is not available by default–please contact your Salesforce Account Executive).
  • Marketo Sync user has to be created in Salesforce.
  • For existing customers, Feature to “Enable OAuth for SFDC sync” is enabled on the customer’s subscription.
  • Pop-up blockers are disabled.
  • Connected App is created and we have the Consumer Key and Consumer Secret are available for use.
CAUTION

Be sure to hide all fields you don’t need in Marketo from the sync user before clicking Sync Fields. Once you click Sync Fields, all fields the user can see in SFDC will be created in Marketo permanently and cannot be deleted.

  1. In the Marketo Admin section, click CRM, then Sync with Salesforce.

  2. Add the Consumer Key and Consumer Secret info you previously recorded and click and Save.

  3. On the Marketo Salesforce sync page, click the Login with Salesforce button.

    CAUTION

    If you’re seeing Username/Password/Token fields and not a “Login with Salesforce” Button, your Marketo Subscription is enabled for Basic Authentication. Please refer to Set up Marketo with Basic Authentication. Once the sync begins using a set of Credentials, there is no switching of Salesforce credentials or subscription. If you want to use Oauth 2.0, reach out to your Customer Success Manager.

  4. A pop-up with the salesforce login page will show up. Key in your “Marketo Sync User” credentials and log in.

  5. Enter the verification code you received via email (sent by Salesforce) and click Verify.

  6. Upon successful verification, the access page will show up requesting access. Click Allow.

  7. In a few minutes, a pop-up will appear in Marketo. Click Confirm Credentials.

  8. Upon completion of Field Syncing, click Start Salesforce Sync.

  9. Click Start Sync.

Your Sync between Marketo and Salesforce is now in progress.

On this page