I am trying to establish the REST between two Org. I have created the Connected app and decided to go with userName, Password flow.

Now I want to utilize the connected app in the Apex class. So i need to pull all the information from the app [Consumer Key, Secret, UserName, password, endpointUrl] .

What is the best and secure way to keep all the information and retrieve in apex class.?

  • The connected app only needs to be in an org you control. Don't put it in other orgs. Don't package it. – Eric May 23 '17 at 12:31
  • Yes. But is it safe to store the client secret and key in custom settings. I dont see any encrypted field in custom settings. – bharath May 23 '17 at 12:33
  • Managed package? Typically just hardcoded into codebase. Interested to hear other ideas – Eric May 23 '17 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.