Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Welcome back, you've already connected with this app via Google+ Sign-In as *

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:

preview of errro

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.
  }
}
like image 556
Kivylius Avatar asked May 25 '13 11:05

Kivylius


1 Answers

There was a bug in the code that made this message prompt up. Thank you who ever at Google fixed this.

Should be gone.

like image 198
Kivylius Avatar answered Oct 24 '22 08:10

Kivylius