I want to integrate two Salesforce orgs through REST API using OAuth. I am able to do this through connected app via consumer key and consumer secret key. However this process requires username and password. Is there a way to connect two orgs without username and password?

  • Use oAuth with access and refresh tokens. Have a page where a user can authorize and store the tokens in a custom setting. – Eric Apr 20 '17 at 14:31
  • Are you worried about needing to store the username and password for ongoing connections, or for the initial connection? Once you have a session available, the username and password are irrelevant. – sfdcfox Apr 20 '17 at 14:43

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.