在我的C#應用程序,我試圖讓aouth2訪問和刷新令牌:谷歌的oauth2 C#:沒有刷新令牌
https://developers.google.com/accounts/docs/OAuth2InstalledApp
在階段:處理響應,當我撥打電話我應該得到的東西,如:
{
"access_token":"1/fFAGRNJru1FTz70BzhT3Zg",
"expires_in":3920,
"token_type":"Bearer",
"refresh_token":"1/xEoDL4iW3cxlI7yDbSRFYNG01kVKM2C-259HOF2aQbI"
}
,但我得到
{
"access_token":"1/fFAGRNJru1FTz70BzhT3Zg",
"expires_in":3920,
"token_type":"Bearer",
}
因此:refresh_token丟失。我調試,我相信我打了API方法:FetchAccessAndRefreshTokens但我沒有refresh_token。
PS:我正在使用201306 API
任何想法?
似乎相同的問題:http://stackoverflow.com/questions/8433990/when-authenticating-with-oauth-and-youtube-always-get-error-invalid-grant-on – daghan
請參閱由mariuss : http://stackoverflow.com/questions/18317623/no-refresh-token-permission-to-access-data-while-offline-google-oauth/18342063#18342063 – mengcheng