Forum Discussion
Thanks @lzapart for helping. Those who are struggling in getting refresh_token from SalesForce, make sure the connected app in SalesForce has Selected OAuth Scopes as follwoing:
Full access (full)
Perform requests on your behalf at any time (refresh_token, offline_access)
Then using postman make a request to get new access_token with your client_id and client secret with scope as refresh_token:
Use that refresh_token in pipeline shared by @lzapart along with client_id and client secret to get access_token.
- flavia_sarah5 years agoNew Contributor II
Thanks @bhupender.singh for your input, which was still helpful to me even after a year. 🙂
I was facing the same issue in Oauth2 Account, as it wasn’t auto-refreshing the token for me, and I was reluctant on taking the whole REST POST Snap approach.In SFDC App, I had only Selected OAuth Scopes as “Full access (full)”, now I tried selecting both:
- Full access (full)
- Perform requests on your behalf at any time (refresh_token, offline_access)
and generated the Client ID and Client Secret which I then used in the Snaplogic Oauth2 account. It works for me now! 🙂
Will keep posted on any other observations. Thanks again!Hi, Could you please let us know what have you given in callback url at salesforce end. We are getting the below error while clicking on “authorize” in snaplogic salesforce oauth2 account.
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
- bojanvelevski3 years agoValued Contributor
HI @KTsnap,
I believe you need to add the Snaplogic redirect uri:
https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/rest
Related Content
- 6 months ago
- 4 years ago
- 5 years ago