OAuth 2 credentials support PKCE for Salesforce
Preview Date: 2026-10-23. Production Date: 2026-10-23.
When you select the
Use PKCE (S256)
check box on an OAuth 2 credential, Request Authorization
uses Proof Key for Code Exchange (PKCE).Business Benefits
You can authorize Salesforce Connected Apps and External Client Apps that require PKCE.
Request Authorization
no longer fails with missing required code challenge for those apps.Changes
OAuth 2 credentials now include a
Use PKCE (S256)
check box. It is unchecked by default. When you select it, Request Authorization
uses PKCE.What Do I Need to Do?
When
Request Authorization
fails with missing required code challenge:
- Open the OAuth 2 credential.
- SelectUse PKCE (S256).
- SelectSave.
- SelectRequest Authorizationagain.
For a new Salesforce Connected App or External Client App created on or after June 9, 2026, select
Use PKCE (S256)
first.No action is required when the credential already authorizes. On existing OAuth 2 credentials, the new check box stays unchecked.
What Happens if I do Nothing?
Existing credentials keep their current behavior. A Salesforce app that requires PKCE fails authorization until you select
Use PKCE (S256)
.