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
crtest1crtest1 

Obtaining an Access Token in a Native Application (User-Agent Flow) doesn't return refresh token

Hi,

 

After reading this wiki page http://wiki.developerforce.com/index.php/Digging_Deeper_into_OAuth_2.0_on_Force.com, i tried obtaining an Access Token in a Native Application / User-Agent Flow. I would expect in the end the refresh token  will be in the redirect returned (3) containing several parameters in a URL fragment. However it doesn't include the refresh token.

 

Following are what i tried in a browser, and its redirect from Salesforce.

 

  1. Request to Salesforce: https://login.salesforce.com/services/oauth2/authorize?response_type=token&oauth_consumer_key=3MVG9Km_cBLhsuPy92UAudTyfc9ka4dxuV.OMS5r0vyIS_ThDWpVFBpenmEEUGIHUrBCeHC28ZqbFDWkcCUAd&redirect_uri=https://localhost/sfdc_callback&display=touch&state=my_value
  2. Redirect from Salesforce: https://localhost/sfdc_callback#access_token=00D500000006tTs%21AREAQKZDxGeWrnBL4rohFjDM41hdv5crgBeGDFOHx1X0rwHECCVMuBtrwAnanilp57ZSEaPHCiuQvYTftXsuYXY7XfC9dA_5&instance_url=https%3A%2F%2Fna3.salesforce.com&id=https%3A%2F%2Flogin.salesforce.com%2Fid%2F00D500000006tTsEAI%2F00550000000lo9gAAA&issued_at=1309501094987&signature=jz0mFh6LDgw9btPuGBF%2FW46eG22QTRj%2FRVT7bGEMrTo%3D&state=my_value

You can see refresh_token is not in the url. Did I miss anything? Please help on this.

 

Thanks in advance.

 

 

DanielDDanielD

I got the same issue, any one can help?