NexBlazers Logo
NexBlazers Learn • Build • Grow
Security & Identity

Connected Apps to External Client Apps: Every Change, How to Test It, and the Fix

Written by NexBlazers Architecture Team November 28, 2026 10 min read Interactive
The basics

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.

Nov 30, 2026
Device flow
Local External Client Apps only
Feb 20, 2027
Legacy flows retire
Username-password, user-agent, hybrid
Summer '27
Connected App support ends
No more fixes or support

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.

  1. September 2025
    Uninstalled Connected Apps are blocked
    Apps 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
  2. Spring '26
    New Connected Apps can't be created
    Creation 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.
  3. Oct 21 / Nov 4, 2026
    Refresh tokens die after 30 idle days
    Rolling out to sandboxes, then production, for both app types. Deep dive: the 30-day idle limit.
  4. Nov 30, 2026
    Device flow restricted to local ECAs
    Only local (org-owned, unpackaged) External Client Apps with a localhost callback can use the OAuth 2.0 device flow.
  5. Feb 20, 2027
    Username-password, user-agent and hybrid flows retire
    Orgs created in Summer '26 or later already block username-password. ECAs never supported it. Deep dive: the username-password retirement.
  6. 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.
Architecture Note: plan one migration, not six fire drills Each change looks small on its own, but they all land on the same integrations. If you move an integration to an ECA and to a modern flow (Client Credentials, JWT Bearer, or Web Server with PKCE) in one change, you clear every date on this list at once.
Try it

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.

What kind of app is it?
Which OAuth flow does it use?
How often does it connect?
Ready

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 ExternalClientApplication components (.eca files in externalClientApps, 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

  1. Get the permission. You need Create, edit, and delete External Client Apps.
  2. 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.
  3. 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.
  4. Run the test plan below, then repeat in production in a quiet window.
What the migration tool can't move Single sign-on (SSO) Connected Apps, Canvas apps and apps created through Dynamic Client Registration can't be migrated with the tool. Connected Apps that came from a vendor's package are the vendor's to migrate: ask them for their ECA version and date. Check the migration guide for the current list before you plan.
Test it

The Sandbox Test Plan

Tick each test as you run it. Nothing is saved: this is a working checklist for one session.

0 of 0 done

4. The error you see, and the fix

What you seeLikely causeFix
invalid_grant: expired access/refresh tokenRefresh token unused for 30 daysRe-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 blockedClient 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 AppInstall 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, 2026Device flow restrictedCreate a local ECA with a localhost callback and point the client at it
No option to create a new Connected AppSpring '26 creation restrictionCreate an External Client App instead
Setting up Salesforce CLI org login jwt for an orgThe CLI requires an ECA for JWT loginFollow Create an External Client App in Your Org (callback http://localhost:1717/OauthRedirect)
Deploying an .eca file fails in a target orgExternal Client Apps not enabled thereTurn 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.
Architecture Note: use your My Domain URL Client Credentials requests go to your org's My Domain token endpoint, not 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.
Interview-ready

Predict the Outcome

Five scenarios from real migration projects.

Question 1 of 5 Score: 0

Cheat sheet: Connected App vs External Client App

Connected AppExternal Client App
Create new onesRestricted since Spring '26Yes
SupportEnds Summer '27The recommended model
Default exposureUsers could self-authorise (now restricted)Local and closed by default
Username-password flowUntil Feb 20, 2027Never supported
Device flowBlocked from Nov 30, 2026Local ECAs with a localhost callback
30-day refresh token idle limitAppliesApplies

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.

Keep learning

Official Resources

Straight from Salesforce: the docs this article is based on.

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.

Book a Migration Review

All information in this article was collected from publicly available resources, including official Salesforce documentation.