欢迎回来,您已通过Google+登录与此应用相关联*

Kiv*_*ius 13 javascript google-app-engine google-api oauth-2.0 google-oauth

我正在使用谷歌应用程序引擎使用python和OAuth2.0(谷歌帐户,而不是Google+)作为登录媒体进入我的应用程序,它已经很好,在过去的半年和良好的工作,现在每次我都会显示一条消息运行我的应用程序,如下所示:

errro的预览

为什么每次加载我的应用程序时都会继续推广?第二,为什么我说这个应用程序与Google+连接(我甚至没有),当我没有,装饰师使用的是OAuth2Decorator.希望有人能提供帮助.

Edit2我被问到代码示例,这里是整个javascript auth2.0流程.

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.
  }
}
Run Code Online (Sandbox Code Playgroud)

Kiv*_*ius 1

代码中存在一个错误,导致出现此消息。谢谢谷歌解决这个问题的人。

应该消失了。