SOLVED

Marketo sandbox integration error with Salesforce dev environment

Go to solution
Tamir_Belzer_TB
Level 2

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

Tags (2)
1 ACCEPTED SOLUTION
PeeyushSachdeva
Level 3

Hi @Tamir_Belzer_TB,

 

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.

 

View solution in original post

3 REPLIES 3
PeeyushSachdeva
Level 3

Hi @Tamir_Belzer_TB,

 

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 4

Thanks @PeeyushSachdeva for sharing these steps

PeeyushSachdeva
Level 3

You're welcome! @NiharikaGoyal