Salesforce is moving every OAuth integration from connected apps to external client apps. New connected apps are already off by default, and a release update now in the Winter '27 notes sets a date after which the old framework is no longer supported. Most teams will treat this as a lift-and-shift: press the migrate button, check the integration still works, move on.
That wastes the one moment when every OAuth policy in the org gets looked at anyway. This post covers the timeline, what the migration keeps and what it cannot handle, and the policy decisions worth making on each app while you are there.
The timeline
| When | What changes |
|---|---|
| Spring '26 | Creation of new connected apps is disabled by default in all orgs, through Setup and the APIs. Package installation is the exception, and existing apps keep working. Turning creation back on needs a request to Salesforce Support. |
| 30 November 2026 | The OAuth device flow is restricted to local external client apps with a localhost callback. Connected apps that use it must move. |
| 20 February 2027 | The username-password, user-agent and hybrid flows are retired for connected apps. |
| Summer '27 | The Migrate All Connected Apps to External Client Apps release update is enforced in production. Connected apps do not stop working, but Salesforce no longer fixes bugs or provides support for them. |
"Not supported" is the important phrase for security teams. An authorization framework that no longer receives fixes is not something to keep running integrations on.
What is different about external client apps
External client apps (ECAs) split an app into two parts that connected apps mixed together:
- Settings, owned by the developer: OAuth scopes, callback URLs, enabled flows, certificates. In metadata these are
ExternalClientApplicationandExtlClntAppOauthSettings. - Policies, owned by the admin of the org that uses the app: permitted users, IP relaxation, refresh token policy, session policies. In metadata this is
ExtlClntAppOauthConfigurablePolicies.
Policies are not packaged, so an ISV cannot ship an app that sets a subscriber's policies for them. ECAs were also built for second-generation packaging, which connected apps never supported directly. Two behaviours catch teams out:
- Local ECAs are not copied to sandboxes. When you create or refresh a sandbox, only packaged ECAs come across. A local ECA you created in production has to be recreated or deployed to each sandbox. Plan for this before you migrate an app your test environments rely on.
- Some features only exist on ECAs. Salesforce's hosted MCP servers, for example, only accept external client apps for authentication.
What the migration tool keeps
Eligible local connected apps can be migrated from App Manager with Migrate to External Client App. According to Salesforce's migration guide:
- The consumer key and secret are preserved, so integrations keep authenticating and existing refresh tokens stay valid.
- The original connected app remains as a read-only record. Do not delete it: the two share the same consumer, and deleting the ECA makes the connected app active again.
- Migration is UI only. There is no API or CLI path.
Apps that cannot be migrated include those using the username-password flow (ECAs never supported it), Canvas apps, dynamic client registration, user provisioning, and apps with a custom Apex handler. The tool cannot detect whether the username-password flow is in use, so check Login History before you migrate.
The security review to do on each app
Because the key and secret carry over, migration changes nothing an attacker would notice. The value is in the review. For each app, before you press the button:
1. Decide whether it should exist. Look at OAuth Usage for the app. If no token has been used in 90 days and nobody owns it, revoke its tokens and delete it instead of migrating it. Dormant apps with live refresh tokens are exactly what made the 2025 OAuth token thefts so damaging.
2. Write down an owner and a purpose. Every ECA should map to a named integration, a team and a ticket.
3. Then set the policies deliberately:
| Policy | Safer default | Why |
|---|---|---|
| Permitted users | Admin approved users are pre-authorized, plus a permission set | Stops any user from authorizing the app on their own |
| OAuth scopes | Only what the integration calls; avoid full |
full plus refresh_token is a standing key to everything the user can reach |
| IP relaxation | Enforce IP restrictions | Relaxing them lets a stolen token work from any network |
| Refresh token policy | Expire after inactivity, with rotation where the client supports it | Long-lived, never-rotated refresh tokens outlive the people who issued them |
| Session policies | Short timeout; high assurance for data export tools | Limits what a hijacked session can do |
| Flows enabled | Only the flow the integration uses | Device and client credentials flows each widen who can get a token |
| Callback URLs | HTTPS only, exact URLs | A loose callback is a token delivery address for someone else |
| Client credentials run-as user | A dedicated integration user, never an admin | The app is that user for every call |
Since 4 November 2026, Salesforce caps idle refresh tokens at 30 days in production, so "valid until revoked" is no longer an option you can pick. Clients that refresh less often than that will see invalid_grant and need a new authorization, which is a good reason to confirm each integration's token pattern during the migration.
4. After migrating, compare. Salesforce does not publish a field-by-field list of which connected app policies carry over, so open the new ECA's policies and compare them against your notes before calling the app done. Then retrieve the ECA metadata and commit it, so the next change to its policies shows up in a pull request instead of only in Setup Audit Trail.
What to migrate first
Order by risk, not by alphabet: apps that use the device flow (30 November 2026), apps whose integration users hold Modify All Data or View All Data, apps with full scope and relaxed IP restrictions, then everything else. Migrate in a full sandbox first, run each integration through a complete cycle, then do production.
Checking OAuth posture with Vulkro for Salesforce
vulkro-sf org oauth-risk rates every connected app, external client app and app seen through its OAuth tokens, read-only through your sf CLI login:
vulkro-sf org oauth-risk --target-org prod --format json-report > oauth-risk.json
vulkro-sf scan ./force-appIt reports apps an administrator has authorized (SF-OAUTH-APP-001), broad scopes without IP restriction (SF-OAUTH-APP-002), apps any user may self-authorize (SF-OAUTH-APP-003), refresh tokens that never expire or rotate (SF-OAUTH-APP-004), device flow enabled (SF-OAUTH-APP-005), plain-HTTP callbacks (SF-OAUTH-APP-006) and dormant tokens (SF-OAUTH-TOKEN-001), with a revoke list that recommends and never revokes. On retrieved ECA metadata, vulkro-sf scan flags IP relaxation (sf-eca-ip-relaxation-bypass), self-authorization (sf-eca-self-authorization), a public client without PKCE (sf-eca-public-client-no-pkce) and a weak refresh token policy (sf-eca-refresh-token-infinite), so a policy regression fails review before it reaches production.
FAQ
Do existing connected apps stop working in Summer '27?
No. When the release update is enforced in production in Summer '27, connected apps keep working, but Salesforce stops fixing bugs in them and stops supporting the integrations and flows that use them.
Does migrating a connected app break existing integrations?
Usually not. The migration preserves the consumer key and secret, and existing refresh tokens stay valid. Apps using the username-password flow, Canvas, user provisioning or a custom Apex handler cannot be migrated with the tool.
Can I still create a new connected app?
Not by default. Since Spring '26 creation is disabled in every org, including through the Metadata API, and only Salesforce Support can turn it back on. Installing a package that contains a connected app still works.
See the org oauth-risk reference and the connected apps guide, or start a 14-day trial. Related: the username-password flow retirement and refresh token policies for integrations.