[SalesForce] Canvas Signed Request not sending refresh_token

I have a canvas a app that I distribute via a managed package on the AppExchange. The canvas app is configured to post a signed request to my heroku app. I have selected all the oauth scope options:

enter image description here

The issue I am having is when the post is made to my heroku app, there is no sign of a refresh_token in the JSON context.

**Update

Here is a screen from the canvas developer docs, showing that there is a refreshToken included in the POST JSON:

enter image description here

Best Answer

In Winter 17 I found that you need to add permission:

“Perform requests on your behalf at any time refreshToken (refresh_token, offline_access)”

https://resources.docs.salesforce.com/sfdc/pdf/canvas_framework.pdf

After I added it it returns refresh_token

Related Topic