function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mark FoxMark Fox 

Simplest Access To API

I am trying to integrate my external SaaS website with Salesforce and want to make the integration as easy as possible for my customers who use both. Are there easier ways to get my clients' Salesforce's REST API authentication credentials (consumer key, token, secret, username, and password) than having them login, create an app, and email me the information? Can an app installed from AppExchange act as a proxy (i.e. have its own webservice with its own custom authentication) or share that information (could the admin installing the app grant permission to share the REST API credentials)? I would love to tell my clients "just install this AppExchange app" to setup the ability for my external site to access their Salesforce data. How do others do this?


It's actually both simpler, and more confusing than you've stated. 

In your development org of your package, you can create the Oauth keys by creating a connected app. These oauth keys are global across the SF ecosystem, regardless of the org type. In other words, your dev org's consumer key, and consumer secret can be used to establish an oauth flow. 

This is a very very helpful article, and I highly suggest you commit it to memory: (" target="_blank)

Mark FoxMark Fox
Connected apps looks exactly like what I need, thanks!