Marketo sandbox integration error with Salesforce dev environment | Community
Skip to main content
New Participant
July 13, 2025
Solved

Marketo sandbox integration error with Salesforce dev environment

  • July 13, 2025
  • 1 reply
  • 703 views

Hi, Did anyone encountered an error 

Failure passed to redirect url. error=invalid_request error_description=missing required code challenge when trying to connect the Marketo sandbox to the dev environment of Salesforce? Any idea how to fix it? Marketo's support did not really help

Best answer by PeeyushSachdeva

Hi @tamirbe,

 

The issue is with the Salesforce connected app configuration. Salesforce has started enforcing PKCE (Proof Key for Code Exchange) on some OAuth flows, and Marketo’s sandbox environment doesn’t currently support sending a code_challenge as part of the auth

request.

 

To fix it, went into Salesforce:

  • Navigated to Setup > App Manager
  • Found the connected app used for the Marketo integration
  • Clicked Edit Policies
  • Under "OAuth policies", unchecked the setting: "Require Proof Key for Code Exchange (PKCE) for Web Server Flow"
  • Saved the changes

After this, retry the connection from the Marketo sandbox. Hope this will resolve the problem.

 

1 reply

PeeyushSachdeva
PeeyushSachdevaAccepted solution
New Participant
July 14, 2025

Hi @tamirbe,

 

The issue is with the Salesforce connected app configuration. Salesforce has started enforcing PKCE (Proof Key for Code Exchange) on some OAuth flows, and Marketo’s sandbox environment doesn’t currently support sending a code_challenge as part of the auth

request.

 

To fix it, went into Salesforce:

  • Navigated to Setup > App Manager
  • Found the connected app used for the Marketo integration
  • Clicked Edit Policies
  • Under "OAuth policies", unchecked the setting: "Require Proof Key for Code Exchange (PKCE) for Web Server Flow"
  • Saved the changes

After this, retry the connection from the Marketo sandbox. Hope this will resolve the problem.

 

NiharikaGoyal
New Participant
July 15, 2025

Thanks @peeyushsachdeva for sharing these steps

PeeyushSachdeva
New Participant
July 15, 2025

You're welcome! @niharikagoyal