Salesforce OAuth changes in 2027: deadlines and External Client Apps
Several Salesforce authentication changes take effect between November 2026 and Summer ’27. An integration that runs without attention today could fail after one of these updates, particularly if it uses an older OAuth flow or the SOAP API login() method.
Salesforce is also moving from Connected Apps to External Client Apps (ECAs) for new integrations. The most useful first step is to identify how your existing connections authenticate, then prioritise those with fixed retirement dates.
Salesforce OAuth deadlines for 2026–2027
Salesforce’s security-change roadmap sets out the main milestones. Enforcement can roll out across instances, so also check Release Updates in your own org.
| When | What changes | Action |
| From 4 November 2026 (production); 21 October (sandboxes) | Refresh tokens expire after 30 days without use. The limit also affects access tokens for integrations that do not use refresh tokens. | Review infrequent jobs and plan reauthorisation or a different flow. |
| 30 November 2026 | OAuth device flow is restricted to local ECAs with a localhost callback and no other enabled OAuth flows. | Replace non-compliant device-flow configurations. |
| 15 December 2026 (sandboxes); 31 January 2027 (production) | Additional SOAP login() protections affect broad IP ranges and orgs with no recent SOAP-login activity. | Check security-token requirements and rarely used scripts. |
| 20 February 2027 | Username-password, user-agent, and hybrid user-agent OAuth flows are retired. | Switch affected integrations to a supported OAuth flow. |
| Spring ’27 | Salesforce to Salesforce is retired; legacy authentication for the Salesforce Connect cross-org adapter ends. | Replace Salesforce-to-Salesforce and use named credentials for the adapter. |
| Summer ’27 | Connected Apps reach end of support; SOAP API login() is retired in API versions 31.0–64.0. | Move to ECAs and replace SOAP login() with OAuth. |
Important distinction: Summer ’27 ends Salesforce support for Connected Apps; it does not automatically stop every existing Connected App from working. The separate OAuth-flow retirements can still interrupt authentication, as Salesforce explains in its release notes.
Connected Apps vs External Client Apps: what changes?
The change is that both register external applications that need access to Salesforce. External Client Apps separate developer-controlled settings, such as OAuth scopes and callback URLs, from the policies that Salesforce administrators manage. An ECA must be created or installed in the org where it will operate.
Since Spring ’26, creating new Connected Apps generally requires Salesforce Support. For new work, Salesforce recommends ECAs. Existing integrations do not all need a rebuild: eligible Connected Apps can use Migrate to External Client App in App Manager.
That migration has conditions. It cannot detect whether an integration uses the username-password flow, which ECAs do not support. Some configurations, including Canvas-enabled apps, are ineligible for automated migration. Salesforce also says not to delete the original Connected App after migration. See its migration guidance.
Which Salesforce OAuth flow should you use?
The right replacement depends on how the integration runs:
- Client credentials: for a system-to-system connection acting as a designated Salesforce run-as user.
- JWT bearer: for trusted unattended integrations that can protect a private key and manage certificates.
- Web server flow with Proof Key for Code Exchange (PKCE): for applications where a person signs in, particularly browser or mobile clients.
For command-line work, use supported browser-based or JWT authentication. Keep the device flow for its narrow intended use on compatible, limited-input devices. Whichever flow you choose, grant only the scopes and user permissions the integration requires.
How to prepare: a five-step Salesforce integration audit
1. Find the integrations
It is recommended to start with Connected Apps OAuth Usage, App Manager, and Login History in Setup. Review integration users, middleware, scheduled jobs, and third-party packages. These views provide evidence of activity but are not a complete inventory of every integration, particularly dormant jobs.
2. Identify the authentication method
Record the application owner, OAuth flow, token behaviour, and any SOAP login() calls. Pay particular attention to quarterly or seasonal jobs: the 30-day refresh-token idle limit is already being enforced. A broader Salesforce audit can help uncover connections outside the usual admin checks.
3. Assign responsibility and prioritise
Address device-flow integrations before 30 November, then password-based and browser-based flows before 20 February. Ask external vendors for their migration plans. When multiple suppliers share an org, agree who owns each integration and its ECA; our guide to multivendor Salesforce delivery covers that responsibility.
4. Migrate and test safely
Change unsupported flows before migrating the app registration. Test authorisation, data exchange, error handling, and recovery in a sandbox. For eligible migrations, verify that the new ECA works and retain the original Connected App as Salesforce instructs. Include a Salesforce Health Check where broader security configuration needs reviewing.
5. Monitor after release
Record the agreed owner, approved scopes, authentication method, and renewal procedure. Alert on login failures and test integrations that rarely run. Salesforce managed services can support ongoing monitoring and future release changes.
Final thoughts
The immediate priorities are non-compliant device-flow apps and integrations using the retiring username-password or user-agent flows. A reliable inventory also exposes infrequent jobs and SOAP logins that need attention before 2027. If you need help assessing your integrations or planning a migration, explore Spyrosoft’s Salesforce services.
FAQ
Not solely because support is ending. Salesforce says existing Connected Apps can continue working after Summer ’27, but it will no longer provide bug fixes or support for them. Some OAuth flows have earlier retirement deadlines, so an app using one of those flows can stop authenticating before then.
For unattended system integrations, client credentials or JWT bearer are common alternatives. An application where a user signs in normally needs a web server flow, typically with PKCE. The choice depends on user context, credential handling, and the application’s architecture. External Client Apps do not support username-password OAuth.
It applies to idle refresh tokens in Connected Apps and External Client Apps. Salesforce also limits access tokens for integrations that do not use refresh tokens. Regular refresh-token use resets the idle period, but a quarterly job might encounter an expired token. Review how your integration obtains new credentials rather than assuming its existing session will survive.
Review Connected Apps OAuth Usage, Login History, App Manager, and your integration users. Check middleware configurations, scheduled scripts, and the software vendors responsible for installed packages. No single Salesforce screen proves that every dormant or externally managed connection has been identified, so confirm the inventory with system owners.
No. Salesforce is retiring the SOAP API login() operation, not SOAP queries or record updates. The login() call is unavailable in API version 65.0 and later, and versions 31.0–64.0 lose it in Summer ’27. Integrations can continue using supported SOAP operations after obtaining a session through OAuth.
arrow_circle_rightContact us
Our experts will help you implement and tailor Salesforce to your needs
Other articles