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
Just Code ItJust Code It 

OAuth flows

I need to make  REST API calls to Salesforce from an external web server. I'm new to OAuth (and REST). There are three OAuth flows (, which one is suitable for this typical scenario, system to system integration (external web server to Salesforce). The first two flows seem to have user to provide user (human) name and password, on the other hand, the third flow (user name and password) not really a good fit, because I cannot expose user account's credential. Thanks in advance.
Best Answer chosen by Just Code It

I had posted a similar question on another thread and the reply I got from Pat Patterson (from Salesforce) is to use JWT Bearer Token Flow. You may want to checkout that thread at URL

You may also want to refer to the URL for all OAuth Flows that Salesforce currently supports. It is not just the three flows.

Hope this helps.

Ashish (