13

我正在使用 python 和OAuth2.0(Google 帐户,而不是 Google+)作为我的应用程序的登录媒介使用 Google App Engine,在过去的半年里它一直很好并且运行良好,现在每次我都会显示一条消息运行我的应用程序,如下所示:

错误预览

为什么每次我加载我的应用程序时都会继续推广?其次,为什么它说我将这个应用程序与 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.
  }
}
4

1 回答 1

1

代码中有一个错误导致此消息提示。感谢曾经在 Google 解决此问题的人。

应该没了。

于 2013-06-07T12:54:34.263 回答