requests-oauthlib

Google OAuth 2 Refresh Token is Missing for Web App but Present for localhost

孤者浪人 提交于 2019-11-30 08:30:13
问题 Problem: Missing OAuth 2 Refresh Token. The problem is that the localhost version receives a Refresh Token as part of the granted token but the same code running in GCE does not. Details: I have written a Python Flask application that implements Google OAuth 2.0. This web application runs in the cloud with a verified domain name, valid SSL certificate and HTTPS endpoint. This web application unmodified also runs as localhost . The differences between the runtime is that the localhost version