Connected Apps to External Client Apps: Every Change, How to Test It, and the Fix
What are Connected Apps and External Client Apps?
A Connected App is the Salesforce record that lets an outside system, such as middleware, a mobile app or a vendor tool, sign in to your org through OAuth (the standard for granting API access without sharing passwords). An External Client App (ECA) does the same job, but it's the newer model: closed by default, fully metadata-driven and easier to package. Salesforce now recommends ECAs in every situation. This post lists every change on the road from one to the other, how to test each one, and the fix when something breaks.
Salesforce isn't switching Connected Apps off in one go. It's closing them down one OAuth flow, one permission and one release at a time, and each step breaks a different kind of integration on a different date. Several of those dates have already passed, and the next one is two days away.
Below you'll get the full timeline, a Migration Readiness Checker that tells you which changes hit a given integration and what to do, a sandbox test plan you can tick off, and an error-to-fix table for the messages you'll actually see.
1. Every change, in order
Salesforce tracks most of these in one Help article, Connected App & External Client App Security Requirement Updates. Bookmark it: dates there move, and this post can't.
- September 2025Uninstalled Connected Apps are blockedApps a user authorised but an admin never installed stopped working for most users. Only people with Approve Uninstalled Connected Apps, or Use Any API Client when API Access Control is on, can still use them. Admins blog
- Spring '26New Connected Apps can't be createdCreation is restricted in Setup and the Metadata API. Existing Connected Apps keep working, and installing a package that contains one still works. Turning creation back on needs Salesforce Support.
- Oct 21 / Nov 4, 2026Refresh tokens die after 30 idle daysRolling out to sandboxes, then production, for both app types. Deep dive: the 30-day idle limit.
- Nov 30, 2026Device flow restricted to local ECAsOnly local (org-owned, unpackaged) External Client Apps with a localhost callback can use the OAuth 2.0 device flow.
- Feb 20, 2027Username-password, user-agent and hybrid flows retireOrgs created in Summer '26 or later already block username-password. ECAs never supported it. Deep dive: the username-password retirement.
- Winter '27 → Summer '27"Migrate All Connected Apps to External Client Apps"The release update is available now and is enforced in production in Summer '27, when Connected App support ends. Apps keep running after that, but with no bug fixes and no support. SOAP
login()also retires in Summer '27.
The Migration Readiness Checker
Describe one integration. The checker lists every change that hits it, when, and the fix. Repeat for each app in your org.
2. What actually changes when you move to an ECA
- Closed by default. An ECA is local to your org until you deliberately package it, and users get access through permission sets and policies rather than by self-authorising.
- Settings and policies are separate. Developers own the settings (callback URL, scopes, flows), admins own the policies (who can use it, IP relaxation, session and refresh token rules). That split is what makes ECAs safer to deploy through metadata.
- Metadata-first. ECAs deploy as
ExternalClientApplicationcomponents (.ecafiles inexternalClientApps, API v59.0+), with the OAuth settings and policies in their own types. - No username-password flow. ECAs don't support it at all, so migrating such an integration forces a flow change too.
3. How to migrate a local Connected App
- Get the permission. You need Create, edit, and delete External Client Apps.
- Start in a sandbox. In Setup, open App Manager, find the Connected App and choose Migrate to External Client App. The Setup agent's Migrate Connected App action can do the same job.
- Check what was carried over. Compare scopes, callback URLs, IP relaxation, permitted users and the refresh token policy against the original, which Salesforce keeps as a read-only record.
- Run the test plan below, then repeat in production in a quiet window.
The Sandbox Test Plan
Tick each test as you run it. Nothing is saved: this is a working checklist for one session.
4. The error you see, and the fix
| What you see | Likely cause | Fix |
|---|---|---|
invalid_grant: expired access/refresh token | Refresh token unused for 30 days | Re-authorise now; then move to Client Credentials or JWT Bearer, or add a weekly keep-alive refresh |
invalid_grant: authentication failure, and Login History shows "OAuth Username-Password Flow Disabled" | Username-password flow blocked | Client Credentials or JWT Bearer for machines; Web Server with PKCE when a person signs in |
A new user can't authorise a vendor tool (vendors often report OAUTH_APPROVAL_ERROR_GENERIC) | The app is an uninstalled Connected App | Install it from Connected Apps OAuth Usage and set its policies; don't hand out Use Any API Client as a shortcut |
| Device login on a CLI or kiosk stops working after Nov 30, 2026 | Device flow restricted | Create a local ECA with a localhost callback and point the client at it |
| No option to create a new Connected App | Spring '26 creation restriction | Create an External Client App instead |
Setting up Salesforce CLI org login jwt for an org | The CLI requires an ECA for JWT login | Follow Create an External Client App in Your Org (callback http://localhost:1717/OauthRedirect) |
Deploying an .eca file fails in a target org | External Client Apps not enabled there | Turn on the External Client Apps opt-in in Setup (the enableExternalClientApps setting) before deploying |
Pick the replacement flow
- No person in the loop (middleware, ETL, backups): Client Credentials with a dedicated integration user, or JWT Bearer with a certificate. Neither keeps a refresh token, so the idle limit never applies.
- A person signs in (web apps, desktop tools): Web Server flow with PKCE, which replaces user-agent and hybrid. If runs can be more than 30 days apart, add a keep-alive refresh or accept a re-authorisation runbook.
- No browser on the device (CLI, kiosk): device flow, but only on a local ECA with a localhost callback.
Here's what a Client Credentials token request looks like once the ECA is set up, with the Client Credentials flow enabled and a run-as user selected in its policies:
curl -X POST https://MYDOMAIN.my.salesforce.com/services/oauth2/token \
-d grant_type=client_credentials \
-d client_id="$SF_CONSUMER_KEY" \
-d client_secret="$SF_CONSUMER_SECRET"
# Success: {"access_token":"...","instance_url":"...","token_type":"Bearer", ...}
# No refresh_token in the response: request a new access token on each run.login.salesforce.com. Keep the consumer secret in a vault, never in code or a shared spreadsheet, and give the run-as user only the permissions the integration needs.
Predict the Outcome
Five scenarios from real migration projects.
Cheat sheet: Connected App vs External Client App
| Connected App | External Client App | |
|---|---|---|
| Create new ones | Restricted since Spring '26 | Yes |
| Support | Ends Summer '27 | The recommended model |
| Default exposure | Users could self-authorise (now restricted) | Local and closed by default |
| Username-password flow | Until Feb 20, 2027 | Never supported |
| Device flow | Blocked from Nov 30, 2026 | Local ECAs with a localhost callback |
| 30-day refresh token idle limit | Applies | Applies |
Checked against Salesforce Help, release notes and developer docs on November 28, 2026. Salesforce can move these dates, so confirm against the Help article before you schedule work.
Official Resources
Straight from Salesforce: the docs this article is based on.
Developer Docs
Not sure how many Connected Apps you have left to move?
We'll inventory your apps and flows and plan one migration that clears every deadline.
All information in this article was collected from publicly available resources, including official Salesforce documentation.