![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Salesforce-OAuth-2.0-Web-Server-Flow-for-Web-App-Integration-1024x576.jpg)
1. Create a Connected App in Salesforce.
![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Salesforce-Web-Server-Flow-Connected-App.png)
I have disabled “Require Secret for Web Server Flow” so that the Consumer Secret is not required. For better security, please keep this enabled.
2. Send a GET request to get the Authorization Code.
![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Salesforce-OAuth2-Authorize.png)
3. Open the URL from the response and get the code. Do a POST Request for Access Token.
![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Salesforce-POST-Request-for-Access-Token.png)