You need to sign in to do that
Don't have an account?
Kevin Ridley
Oauth Password flow from HTTP
SF beginner here. Ive been setup with a sandbox to work in their lightning.force.com environment. I'm trying to obtain an access token using a windows app via http. First thing I did was create a connected app. I have it setup for OAuth and saved the Consumer Key and Secret codes. When I try to use the password flow to get an access token, I get an invalid_client_identifier. I have checked the value and it's correct. I'm thinking it must be some sort of permission issue. Do I have to use an endpoint in my sandbox, or do I use the documented https://login.salesforce.com/services/oauth2/token ? Any other thoughts?
You have mentioned that "Trying for access token using a windows app via http". Windows app means?.
First you test with Postman whether you are able to connect or not.
Thanks,
Naren
Not sure why this is important, but it's a PowerBuilder app making http calls. Last night I was able to retrieve the token, but I had to put all of the connect info (grant_type, client_id, client_secret, username and pw) in the query string of the token url. I was hoping to not have to do this, so I could embed that info in the header or body, but I guess this isn't possible?
Anyway, my next task is uploading a file and associating it to an opportunity with a known GUID for the opportunity. I'm going to look through the api documentation to see if I can find which api to use, but if anyone knows already, it might save me some effort.
Thanks,
Kevin