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

Marketo sandbox integration error with Salesforce dev environment

  • July 13, 2025
  • 1 reply
  • 706 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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
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
Level 4
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
Level 3
July 15, 2025

Thanks @peeyushsachdeva for sharing these steps

PeeyushSachdeva
Level 4
July 15, 2025

You're welcome! @niharikagoyal