1

I would like to do a background login of users (using soap login() API) and then use the session to trigger an oAuth flow to receive my access and refresh tokens. Is this feasible and if so how?

  • Do you want only soap api callout to get tokens? I have code for SOAP API callout but don't know about trigger an oAuth flow – Ratan Paul Nov 25 '15 at 16:56
0

You can use your session token from the login() call interchangeably with access tokens, but you cannot get a refresh token from the login() call; only when you login using OAuth with the appropriate scope can you get a refresh token. You can't trade an access token or session token for a refresh token.

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.