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
Adam KundratAdam Kundrat 

Connected App in App Exchange

Hi Guys,

I spent few hours on this including searching forums and I can't seem to find asnwer.

We've got a third party app that we're running on Heroku. We've successfully implemented both web-based token oAuth 2.0 and tested with our scratch org. OAuth flows require to provide "client_id" & "client_secret" (when requesting access token). Now I'm preparing it as package so it can be within the "App Exchange".

I've following questions:
- Once the user installs the app from the App Exchange & connected app is set-up in their org. Do I've to create post install script to send me client_id / client_secret so I'm able to implement oAuth? Is that the only way?

- Is there way to implement "Login With SalesForce" so when user goes to our site they can click it to login into our 3rd party app. Additionally, If their instance have not yet been set-up for app I can tell and redirect them to app exchange. How would I implement this if I don't know client_id which I need for oAuth?