I have to design an external app which will retrieve information from Salesforce. Any user can install this app and use it. This app will use rest API to access information from Salesforce. I cannot force the users belonging to multiple orgs to create a connected app in their instance to generate consumer key and consumer secret. Ideally users must be able to enter username and password+security token to access the data. Is there a way to achieve this or any other way without much customization by the admin.
[SalesForce] REST API without Connected App
Related Topic
- [SalesForce] Access rest service oauth
- [SalesForce] How to incorporate Consumer id and consumer secret in the REST API (Apex class)
- [SalesForce] Is it necessary to provide consumer key and consumer secret to get access token/make API call
- [SalesForce] How would third party app generate access token with just Consumer Key and Consumer Secret
- Integration to Salesforce through REST API without using consumer secret/key
Best Answer
Definitely doable. The admin should not have to customize anything:
client_id
into the runtime code that you distribute,Maybe there is a misunderstanding of how
Connected App
really operates here. Imagine a Salesforce Package as an analogy. You control the true source code in a Packaging / Release Org but you deploy or install a special instance of it. Similarly with a Connected App:client_id
andsecret
,Does this help?