I am building a beta managed package in which I created a connected app ( which generated its own clientsecret and clientid in my dev org).
Now when someone install this package in their org they all will get a copy of my class ( having rest api) lets suppose CreateANewContact.
If any of the rest client say postman want to acces my REST API first need to get the access token and then the refresh token. To get access token following params are important ClientID,ClientSecret,UserName,Psssword.
I have only one clientid and clinetsectrect which belongs to my dev org.
Q1 Question is how the REST Client who are trying to access REST API belong to below org will be accessed.?
Org A ClientID ? Client Secret ? Org B ClientID ? Client Secret ?
Q2 : Will org A and B have their own seprate clientid and client secret or to access their api the same clientid/clientsecret which was generated in dev org can be used ( could be an exception in case of managed package) ?If yes then how can i use them.
Please correct me if I am wrong anywhere in above explaination.
Thanks in advance