How to integrate Web Application with Salesforce via Oauth
   This tutorial shows you the basic of Oauth. We have created a Java Web Application that authenticates the user to salesforce via Oauth 2.0 and then we have performed few CRUD operation via the new API.   Setup:    SSL  enabled Tomcat Server as we have deployed our Web Application on  tomcat. Click here   for instruction on How to enable SSL on apache Tomcat 7.0    Salesforce  Remote Access Application. Click here   for instruction on How to create Remote Access Application on  Salesforce?      Download  the application from here   and change the name to Services.       Run the Project:   Check out the project from the above URL, import into the eclipse and Run as a Server.      Navigate your browser to https://localhost:8443/Services . You will see the following page:                Click on the link and it will take you the salesforce page for Authentication :                   Once you are login into salesforce, It will ask you to allow the Oauth_Apps to access your data:         ...