I'm working with Google App Engine using python and OAuth2.0
(Google Accounts, not Google+) as log in medium into my application, and it has been fine for the last half year and working good, now there a message that gets displayed every time I run my application that looks like this:
Why does this keep on promoting every time I load my application? And second of all, why is it saying I connected this app with Google+ ( I don't even have one) when I did not, the decorator used is OAuth2Decorator
. Hope someone can help.
Edit2 I was asked for the code example and here the whole javascript auth2.0 flow.
var CLIENT_ID = 'xxxxxxxx.apps.googleusercontent.com';
var SCOPES = 'https://www.googleapis.com/auth/drive.file';
function checkAuth() { gapi.auth.init(load); }
function load() { gapi.client.load('drive', 'v2', auth); }
function auth() {
gapi.auth.authorize(
{'client_id': CLIENT_ID, 'scope': SCOPES, 'immediate': true},
handleAuthResult);
}
function handleClientLoad() {
window.setTimeout(checkAuth, 1);
}
function handleAuthResult(authResult) {
//$('#intro').center().fadeIn('slow');
if (authResult && !authResult.error) {
// Access token has been successfully retrieved, requests can be sent to the API.
} else {
// No access token could be retrieved, show the button to start the authorization flow.
}
}
There was a bug in the code that made this message prompt up. Thank you who ever at Google fixed this.
Should be gone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With