function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chetan@blusynergy.comchetan@blusynergy.com 

Refresh Token is missing from SalesForce response

When I do https://login.salesforce.com/services/oauth2/token for getting access_token
then its giving this response

"id":"https://login.salesforce.com/id/00D80000000sdmlEAA/0048000000asdfYAAQ",
"issued_at":"1385537310855","scope":"full",
"instance_url":"https://ap1.salesforce.com",
"signature":"JKDzv7DRqREdsf/7+werGpQvgVK8payAmhGAn8WlGIY=",
"access_token":"00D90000000nsml!AQ4AQMfBasdfasdaDJS5W7unp31jfNpQDZYmQ1ef.
_jllTyoeV6SHvTVaYAb5VqgeCHTNHPk9W94HwqngPo5TnIx9UJTXfQs"

here you can see refresh_token is missing as per documentation wriiten on
http://www.salesforce.com/us/developer/docs/api_rest/Content/intro_understanding_web_server_oauth_fl...
see step number 5.

Arunkumar.RArunkumar.R

Did you forget to add refresh token in your coding?

 

{"id":"https://login.salesforce.com/id/00Dx0000000BV7z/005x00000012Q9P",
"issued_at":"1278448101416",
"refresh_token":"5Aep8614iLM.Dq661ePDmPEgaAW9Oh_L3JKkDpB4xReb54_
pZebnUG0h6Sb4KUVDpNtWEofWM39yg==",
"instance_url":"https://na1.salesforce.com",
"signature":"CMJ4l+CCaPQiKjoOEwEig9H4wqhpuLSk4J2urAe+fVg=",
"access_token":"00Dx0000000BV7z!AR8AQP0jITN80ESEsj5EbaZTFG0R
NBaT1cyWk7TrqoDjoNIWQ2ME_sTZzBjfmOE6zMHq6y8PIW4eWze9JksNEkWUl.Cju7m4"}
chetan@blusynergy.comchetan@blusynergy.com

Thanks Arun

 

Actually i solved the problem.

i was not passing the scope at the of authentication as well asl i have not did any settings for refresh_token scope

in App Setting page.

 

Thanks Again

Arunkumar.RArunkumar.R

Welcome Chetan... :)