Concept 3 of 8OAuth and apps

Connected Apps and External Client Apps

How external applications are registered with Salesforce: what Connected Apps did, why creation is now restricted, and how External Client Apps (ECAs) change settings, policies, packaging and security.

Your confidence:Not rated

Simple explanation

To call Salesforce APIs with OAuth, an external application must be registered in the org. That registration defines the client ID and secret or certificate, callback URLs, allowed OAuth flows and scopes, and policies (who may use it, IP restrictions, token lifetimes).

Connected Apps were the long-standing way to do this (also used for SAML service providers and canvas apps).

What changed: from Spring '26, creating new Connected Apps is restricted by default in the UI and Metadata API (except through package installation). Existing Connected Apps keep working, and Support can re-enable creation if truly needed. New integrations should use External Client Apps.

External Client Apps (ECAs)

  • Closed by default: an ECA is only available in the org where it's created unless it's packaged (second-generation packaging) and installed.
  • Settings vs policies are separated: the developer defines settings (callback URL, flows, scopes); the admin of the org where it's installed controls policies (permitted users, IP relaxation, session and refresh token policies).
  • Modern flows only: legacy flows such as username-password aren't supported.
  • Metadata-friendly: defined in source and deployed through the normal pipeline (secrets kept separately).

Uninstalled apps: separately, Salesforce restricted the use of uninstalled Connected Apps by most users (with an Approve Uninstalled Connected Apps permission for trusted users) βš‘ verify current scope.

Real-world analogy

A Connected App was like a visitor badge printed at the front desk: easy to make, sometimes too easy to hand out. An External Client App is a badge issued through the security office: the badge's design (settings) comes from the visitor's company, but your security office decides which doors and hours it allows (policies), and new badges aren't printed at the front desk any more.

Worked example

Setting up an ECA for an ERP middleware integration:

  1. Setup β†’ External Client App Manager β†’ New External Client App: name, contact email, distribution state Local.
  2. OAuth settings: enable OAuth, add scopes (api, refresh_token only if needed), enable JWT bearer flow, upload the middleware's certificate. No callback is used by JWT bearer, but the field may still be required.
  3. Policies: Admin approved users are pre-authorized; assign a permission set containing the ECA to the integration user; set IP relaxation to Enforce IP restrictions if middleware has fixed IPs; short token lifetime.
  4. Store the ECA in source control; deploy to UAT and production with the pipeline; register the production certificate separately.
  5. Monitor usage in login history and OAuth usage pages, and alert on failures.

Diagram

Rendering diagram…

Key points

  • Apps must be registered to use OAuth: client ID, flows, scopes, callback, policies.
  • Spring '26: new Connected App creation restricted by default; existing ones still work.
  • External Client Apps: closed by default, settings vs policies separated, 2GP packaging.
  • ECAs support modern OAuth flows only (no username-password).
  • Admin controls: permitted users via permission sets, IP rules, token lifetimes.
  • Plan migration of legacy Connected Apps and their flows over time.

Limits and gotchas

  • Some features historically configured through Connected Apps (for example SAML service provider setups and canvas apps) may still need Connected Apps or other configuration; check current ECA coverage before planning βš‘ verify.
  • ECAs created Local aren't visible to other orgs; for ISVs and multi-org estates, plan packaging.
  • Moving from Connected App to ECA changes the client ID; every client must be reconfigured, so schedule it with the integration owners.
  • Secrets (consumer secret, certificates) must not be committed to source control.

🎀 How to say this in an interview

This is a "are you current?" topic in 2026 interviews. Explain the Spring '26 restriction, what ECAs change (closed by default, settings vs policies, packaging, modern flows), and how you'd migrate an existing integration with minimal disruption.

Common follow-ups

How would you migrate an integration from a Connected App using username-password to an ECA?

Create an ECA with the JWT bearer (or client credentials) flow, a dedicated integration user and minimal scopes; update the client to the new flow and client ID in a test environment; run both in parallel briefly; switch production; then revoke and remove the old app's access.

Who controls an installed ECA's policies?

The admin of the org where it's installed: permitted users, IP relaxation, session and refresh token policies. The developer controls settings such as flows, scopes and callback URLs.