• lorris guillemot
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I realize that OAuth is most useful when the user is working in a web application or desktop application that redirects to the Salesforce login screen to authenticate.  However, to start testing the wonders to the new REST API, I wanted to write a simple program without a front-end but would still allow me to authenticate using OAuth2.  Once authorized I would be able to call the normal REST commands.  I can't figure out how to login programmatically without using proxy classes for the SOAP API.

 

Is it possible to authenticate with only GETs and POSTs using Salesforce's OAuth2 service?  I'm primarily using Java and would like to use HttpGet and HttpPost to authenticate before issuing REST commands.  Any samples are appriciated.  I would obviously just put my Salesforce login credentials in my code for now.  This is just for testing.  I would like to test without having to run a full-blown web application for authentication purposes.

 

Andrew