Loading
Salesforce now sends email only from verified domains. Read More
Identify Your Users and Manage Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Package an External Client App

          Package an External Client App

          Determine whether to package your app or keep it local. External client apps are an excellent solution when created and used locally. However, they were designed with 2GP managed packaging in mind. Unlike connected apps, which are available by default, only packaged apps can be deployed to other orgs. Packaged apps with an OAuth plugin can be deployed with their own unique OAuth settings or they can reference the settings of the org where the app was developed.

          The only difference in configuration between a local and a packaged external client app is the Distribution State setting. If you change the value in this field from Local to Packaged, the app can be added to a 2GP managed package. We recommend that you use a Dev Hub org to create packageable apps. The process for packaging an external client app is no different than creating any other 2GP managed package.

          When packaging an external client app, it’s important to know that each app contains multiple files. Like the policies and settings tabs in the External Client App Manager, the configurations that define the app are divided between policies files and settings files. For added security, sensitive information isn’t packaged but remains secure on the org where it was developed. This org is known as the source org. In situations where the org that downloads the app (called the subscriber org) can’t be associated with the source org, a new global settings file can be generated when the app is deployed.

          Note
          Note If you delete the external client app from the source org, the subscriber org’s external client app breaks. Because the subscriber org is dependent on the information in the global OAuth settings on the source org. Removal of the file causes the OAuth flow to fail on the new org.

          To create a 2GP managed package containing your external client app, you must use a Salesforce DX project. See Configure a Salesforce DX Project for External Client Apps.

           
          Loading
          Salesforce Help | Article