I am developing an application that is supposed to connect with clients' salesforce accounts and deploy some apex code to them. I am doing this in Groovy - but Java works same.

After looking at the tutorial on how to go about that here, I want to ask if there is a way to use the clients' access token gotten from the OAuth flow instead of using their username and password?


Yes, you can. If you have already OAuth token which is SessionId returned by SOAP Login call, you can just use OAuth token directly without making additional login call passing credentials to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.