Guide Fixing errors

Salesforce "Cross-org OAuth flows are not supported": cause and fix

Updated 3 min read By the BAFO team

Short answer: "Cross-org OAuth flows are not supported" appears when someone signs in to a Salesforce org through an app that belongs to a different org and has not been installed in this one. It is usually seen with an External Client App, the newer replacement for a connected app: such an app lives in the org that created it, and works in another org only after it has been packaged and installed there. The fix is to install the app's package in the org you are signing in to, then try again.

What happens

  1. A tool sends you to Salesforce to approve access. The sign-in page belongs to your org.
  2. The tool's OAuth app - the thing that holds its client id - was created in its developer's org.
  3. Your org has no copy of that app, so it cannot honour the sign-in. Salesforce stops with "Cross-org OAuth flows are not supported", often in the address bar or on an error page, together with the error_description.

Nothing is wrong with your password, your user or the tool's server. The org simply has not been told the app exists.

Why it works in one org and not another

OAuth apps in Salesforce are tied to the org that owns them. An External Client App is scoped to its own org, and to be used in another org it has to be installed there from a package. So the same tool, with the same client id, works in the org where its app lives (or where its package is installed) and fails everywhere else with this message.

This often confuses the first test of a new integration: it works for the developer in the developer's org, then fails in the customer's org or in a Sandbox.

How to fix it

As the person connecting a tool:

  1. Find out which package the tool needs installed (the vendor's install link or instructions will say).
  2. Install it in the org you are signing in to - for a Sandbox, in the Sandbox, using the Sandbox install link.
  3. Choose Production or Sandbox correctly when you connect: signing in at the production login page to a Sandbox-only package (or the other way round) fails the same way.
  4. Press Connect again.

As the person building an integration:

  • Create the OAuth app in the org you are connecting to (a connected app or an External Client App created there), or
  • Package your External Client App and have the customer install the package, so the app exists in their org.
  • Make sure the callback URL of the app matches the one your server sends. A different error, redirect_uri_mismatch, means the callback is wrong; this one means the app is missing.

How to tell it from other sign-in errors

What Salesforce saysWhat it usually means
Cross-org OAuth flows are not supportedThe app is not installed in this org
redirect_uri_mismatchThe app exists, but its callback list does not include the address in use
access_deniedThe user denied access to the client app (Salesforce's own wording)
invalid_client_idThe client identifier is invalid (Salesforce's own wording)

For the approval page that can stop a sign-in, see OAUTH_APPROVAL_ERROR_GENERIC; for a refused token request, see invalid_grant.

Frequently asked questions

Is this a Salesforce outage?

No. It is a message about the app and the org, not a fault in either.

Will resetting my password help?

No. The sign-in cannot continue because the app is not present in the org.

Does it affect Sandboxes?

Yes: a Sandbox is a separate org, so the app must be installed there as well.

Can an admin make it work without installing anything?

Not for an External Client App that belongs to another org: it has to be installed from its package. An admin can instead create an OAuth app in the org itself, if the tool supports using one.

Sources and further reading

Where this page leans on someone else's documentation or standard, it is listed here. Check the release or edition your org runs: official pages change.

Keep reading