Google API, the problem of NULL refresh token

Source: Internet
Author: User

Http://stackoverflow.com/questions/10827920/google-oauth-refresh-token-is-not-being-received

The is only provided on the first authorization from the refresh_token user. Subsequent authorizations, such as the kind you make and testing an OAuth2 integration, would not return the refresh_token again. :)

    1. Go to your account security settings:https://www.google.com/settings/u/1/security.
    2. Click the Edit button next to "Authorizing applications and sites".
    3. Then click the "Revoke Access" next to your app.
    4. The next OAuth2 request you to make would return a refresh_token .

Alternatively, you can add the "query parameter to the approval_prompt=force " OAuth redirect (see Google's OAuth 2.0 for Web Server applicat Ions page).

This would prompt the user to authorize the application again and would always return a refresh_token .

Google API, the problem of NULL refresh token

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.