Salesforce requires certain OAuth security controls for Connected Apps (CAs) and External Client Apps (ECAs) based on the app's type, provider, and creation date. Some required settings are locked and can't be disabled, even when Setup says to contact Support. Use this article to identify your scenario and take the appropriate action.
This article explains the OAuth security control changes affecting Connected Apps (CAs) and External Client Apps (ECAs) in Salesforce, who is affected, and what to do next.
OAuth security controls now apply to Connected Apps and External Client Apps, with enforcement scope depending on app type and creation date.
| App Type | Proof Key for Code Exchange (PKCE) | Refresh Token Rotation (RTR) | 30-day Idle Refresh Token Time-to-Live (TTL) | Refresh Token IP Allowlist | Learn More |
|---|---|---|---|---|---|
| Locally managed CAs/ECAs created on or after July 9, 2026 | Required | Required | Required | Recommended when applicable | |
| Third-party CAs/ECAs subject to Salesforce partner security requirements | Required | Required | Required | Required when applicable | |
| Locally managed CAs/ECAs created before July 9, 2026 | Highly recommended | Highly recommended | Required | Highly recommended when applicable |
|
This change affects customer admins and developers who manage locally created apps, third-party app providers, and customers who use third-party apps.
| If you are | Your situation | What to do |
|---|---|---|
| A customer admin or developer managing a locally managed Connected App or External Client App | You created a locally managed Connected App or External Client App on or after July 9, 2026. |
Update the OAuth client implementation to support the required controls. These settings can't be disabled. |
| You created a locally managed Connected App or External Client App before July 9, 2026. |
Plan and test adoption of the controls before locking them. Where you or another developer in your org manually locked a control and unintentionally affected your integrations, Salesforce Support can unlock these on request. Salesforce Support cannot unlock 30-day Idle Refresh Token Time-to-Live (TTL) control, as that is now a default requirement. | |
| You recreated a locally managed app after a sandbox refresh. The original production app was created before July 9, 2026. |
Ask Salesforce Support to unlock the app's security controls on the recreated sandbox app. Do not request to unlock the 30-day Idle TTL control as that is now a default requirement. | |
| A third-party app provider | You provide a Connected App or External Client App for use by your customers or subscribers. |
Implement, test, and attest to the applicable partner security requirements. |
| A customer using a third-party app | The app and its OAuth implementation are managed by the provider. |
Contact the app provider if the integration needs to be updated or stops working. |
PKCE, RTR, and the 30-day Idle Refresh Token TTL are required for locally managed CAs and ECAs created on or after July 9, 2026. These controls can't be disabled.
Update and test the OAuth client implementation. Requesting Salesforce Support to disable or unlock these controls isn't an available remediation for these apps.
For locally managed Connected Apps and External Client Apps created before July 9, 2026, these controls are currently recommended rather than required with the exception of the 30-day Idle Refresh Token Time-to-Live (TTL) control. 30-day Idle Refresh Token Time-to-Live (TTL) is now required for all apps, including locally managed apps created before July 9, 2026. See Security Change: Refresh Token Idle TTL Is Limited to 30 Days.
Plan and test the controls before locking them. After you lock a control, you can't unlock it through Setup. If you or another developer in your org manually locked a control and unintentionally affected an integration, contact Salesforce Support to request that the control be unlocked (except for 30-day Idle Refresh Token Time-to-Live (TTL) as Salesforce Support cannot unlock this default requirement. Update and test the OAuth client so it can obtain a new token after idle expiration. Each successful refresh resets the 30-day idle window).
Salesforce strongly recommends updating and testing the integration with the security control enabled, and then locking the control again when the integration is ready. This improves security and helps prepare for potential future enforcement.
See Related Resources for control-specific guidance.
Locally managed CAs/ECAs aren't copied during a sandbox refresh. If you recreate a locally managed CA or ECA in a sandbox to replace an eligible production app created before July 9, 2026, contact Salesforce Support if you need PKCE, Refresh Token Rotation, or Refresh Token IP Allowlist unlocked on the recreated app. 30-day Idle Refresh Token TTL cannot be unlocked, including after a sandbox refresh.
See Related Resources for control-specific guidance.
If you provide a Connected App or External Client App (CA/ECA) for use by customers, review and implement the applicable Salesforce security requirements. These requirements can include PKCE, Refresh Token Rotation, the 30-day Idle Refresh Token TTL, and the Refresh Token IP Allowlist.
Salesforce requires the applicable controls for in-scope third-party apps. Salesforce Support can't unlock these controls.
For requirements, applicability, implementation guidance, and compliance information, see:
If a third-party app or integration stops connecting, contact the third-party app provider for assistance. The provider manages the app and can determine the appropriate next steps.
Share the exact error message and the time the error occurred, including the time zone, to help the provider investigate.
Don't send consumer secrets (client_secret values), access tokens, refresh tokens, authorization codes, passwords, or other authentication credentials.
In Manage External Client App or Manage Connected App, Salesforce can display this message next to an OAuth security setting: "To change this required setting, contact Support."
The message appears consistently across different app scenarios and doesn't guarantee that the setting can be changed. A locked setting can reflect security requirements associated with the app's type, provider, creation date, or security-control attestation.
Salesforce Support can assist only in these two scenarios:
Salesforce Support can't unlock the controls in the other scenarios described in this article. Refer to Identify Your Scenario table listed above and follow the applicable "Actions for..." section.
The setting can be locked because the control is required for the app's type or creation date, or because a third-party app provider enabled and attested to the control. Required or attested controls can't be disabled.
The same message can appear for different app scenarios. It doesn't guarantee that the setting can be changed. Identify who manages the app, how it is distributed, and when it was created to determine the available action. Refer to the scenarios outlined in this article.
Contact the third-party app provider for assistance. The provider manages the app and can determine the appropriate next steps.
Share the exact error message and the time the error occurred, including the time zone. Don't send consumer secrets (client_secret values), access tokens, refresh tokens, authorization codes, passwords, or other authentication credentials.
No. Proof Key for Code Exchange (PKCE), Refresh Token Rotation (RTR), and the 30-day Idle Refresh Token TTL can't be disabled for a locally managed Connected App or External Client App created on or after July 9, 2026.
Update the OAuth client implementation to support the controls.
No. Customer admins and subscribers can't change provider-managed security controls. Contact the third-party app provider for assistance.
For PKCE, Refresh Token Rotation, and Refresh Token IP Allowlist: Yes, if you or another developer in your org locked the control and it broke an integration. Test with the control on, then lock it again when ready.
For Idle Refresh Token TTL: No. Salesforce Support cannot unlock this setting. Prepare the integration for the 30-day idle limit. See Security Change: Refresh Token Idle TTL Is Limited to 30 Days.
For PKCE, Refresh Token Rotation, and Refresh Token IP Allowlist: Yes, if the original production app was created before July 9, 2026 and had the applicable controls disabled for a working integration, Salesforce Support can unlock the corresponding controls on the recreated sandbox app.
For Idle Refresh Token TTL: No. Salesforce Support cannot unlock this setting. Prepare the integration for the 30-day idle limit. See Security Change: Refresh Token Idle TTL Is Limited to 30 Days.
No. After this control is required, contacting Support is not an available remediation. The Setup message appears for several locked OAuth settings and does not mean Idle TTL can be changed.
005433465

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.