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
manish1.394836910417755E12manish1.394836910417755E12 

How to read consumer secret & key programatically?

My package includes a connected app and a custom app. I want to read consumer secret and consumer key from the connected app. 

The workflow I am trying to create is,
a) custom app reads key & secret from connected app
b) custom app passes key & secret to external client
c) external client uses key & secret to establish commnication with SFDC

How can I read the key & secret, which APIs are available?

Thanks.

NehalNehal (Salesforce Developers) 
Hi,

Please refer below links that will provide you with detailed information on how to read consumer key and consumer secret programatically:

1.https://developer.salesforce.com/forums?id=906F00000008nkZIAQ
2.http://feedback.uservoice.com/knowledgebase/articles/235661-get-your-key-and-secret-from-salesforce
3.https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API
4.https://iwritecrappycode.wordpress.com/tag/salesforce/

I hope this helps.