google api , the problem of null refresh token
2014-12-21 20:42
330 查看
http://stackoverflow.com/questions/10827920/google-oauth-refresh-token-is-not-being-received
The
Go to your account security settings: https://www.google.com/settings/u/1/security.
Click the edit button next to "Authorizing applications and sites".
Then click "Revoke Access" next to your app.
The next OAuth2 request you make will return a
Alternatively, you can add the query parameter
This will prompt the user to authorize the application again and will always return a
The
refresh_tokenis only provided on the first authorization from the user. Subsequent authorizations, such as the kind you make while testing an OAuth2 integration, will not return the
refresh_tokenagain. :)
Go to your account security settings: https://www.google.com/settings/u/1/security.
Click the edit button next to "Authorizing applications and sites".
Then click "Revoke Access" next to your app.
The next OAuth2 request you make will return a
refresh_token.
Alternatively, you can add the query parameter
approval_prompt=forceto the OAuth redirect (see Google's OAuth 2.0 for Web Server Applications page).
This will prompt the user to authorize the application again and will always return a
refresh_token.
相关文章推荐
- Google has disabled use of the Maps API for this application
- chrome视频无法播放的解决方法(Solve the problem of Google player cannot be played normally)
- com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh but
- The Problem Of Using MessageBox() Of Win32 API
- Self-Service Linux(R) : Mastering the Art of Problem Determination
- Problem 16 - What is the sum of the digits of the number 2^1000?
- if the reference of the thread is set to null.
- 解剖Google搜索原理 The Anatomy of a Large-Scale Hypertextual Web Search Engine
- How to fix the problem of " Session Lost "
- EasyHook - The reinvention of Windows API Hooking - Home
- Fix the problem: java.lang.OutOfMemoryError: PermGen space in Java development
- How to solve the problem "A project with an Output Type of Class Library cannot be started directly "
- The Search : How Google and Its Rivals Rewrote the Rules of Business and Transformed Our Culture
- .NET Framework Solutions: In Search of the Lost Win32 API
- get the links of google searching result or baidu searching result
- FetchingAcrossCommits:WhereIstheSourceoftheProblem?
- How to (how to refresh/redirect the contents of one frame from another frame )
- The Basics of the MMAPI for Java Developers -> Advanced Media Playback
- The problem of English OS show chinese.
- solve the problem /dev/null: read only filesystem