OAuth via HTTP Post?

phando
Posts: 13
Joined: Wed Dec 14, 2016 5:30 am

OAuth via HTTP Post?

Postby phando » Wed Dec 21, 2016 11:46 pm

Hey All,
Can someone please walk me through making an HTTPS POST? I have been over the example code several times, but I don't think uploading a certificate is needed in my case. I would like to initiate OAuth to a Salesforce dev org via an HTTPS POST with the following info.

grant_type Set this to password.
client_id Your application's client identifier.
client_secret Your application's client secret.
username The API user's Salesforce.com username, of the form user@example.com.
password The API user's Salesforce.com password. If the client's IP address has not been whitelisted in your org, you must concatenate the security token with the password.

Specifically: https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com#Obtaining_a_Token_in_an_Autonomous_Client_.28Username_and_Password_Flow.29

If you have any experience or examples in this area it would be great to compare notes.

Who is online

Users browsing this forum: No registered users and 1 guest