anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

No refresh token returned #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the started provided

What is the expected output? What do you see instead?
The program runs well, but when i check for the refreshToken, id_token was 
returned instead. but i cant seems to use it as refreshToken

What version of the product are you using? On what operating system?
win7OS, api client 0.4.7,

Please provide any additional information below.
i have made changes and added access_type = offline, as what was shown in 
http://code.google.com/apis/accounts/docs/OAuth2WebServer.html for the 
webserver side. but i just dont receive any refreshToken

Original issue reported on code.google.com by emilie.t...@gmail.com on 28 Dec 2011 at 5:28

GoogleCodeExporter commented 9 years ago
"i have made changes and added access_type = offline, as what was shown in "
You shouldn't need to make these changes. The client library will default to 
access_type=offline, and approval_prompt=force.

If you did make custom changes, make sure you set both parameters:
access_type=offline
approval_prompt=force

Original comment by chirags@google.com on 3 Jan 2012 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by chirags@google.com on 4 Jan 2012 at 4:59

GoogleCodeExporter commented 9 years ago
Indeed! If approval_prompt != 'force', a refresh token is not returned! Thank 
you. 

Original comment by dminkov...@gmail.com on 6 Feb 2012 at 10:08