欢迎回来,您已经通过 Google+ 登录到此应用程序 *
Posted
技术标签:
【中文标题】欢迎回来,您已经通过 Google+ 登录到此应用程序 *【英文标题】:Welcome back, you've already connected with this app via Google+ Sign-In as * 【发布时间】:2013-05-20 21:17:35 【问题描述】:我正在使用 Google App Engine 使用 python 和 OAuth2.0
(Google 帐户,而不是 Google+)作为我的应用程序的登录媒介,在过去的半年里它一直很好并且运行良好,现在有一条消息每次运行我的应用程序时都会显示如下:
为什么每次我加载我的应用程序时都会继续推广?其次,为什么它说我连接了这个应用程序与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.
【问题讨论】:
一些代码会很好.. @PeterVaro 问题是我没有更改代码。一样的。但会添加。 我最近在使用 JS GAPI 时开始出现相同的弹出窗口。也没有改变我所做的只是var authConfig = client_id: clientId, scope: scopes, immediate: true gapi.client.setApiKey(apiKey); gapi.auth.authorize(authConfig, handleAuthResult);
@MarcinIgnac 所以我不是唯一一个,如果您找到解决方案,请在此处提及。谢谢。
@Jessica 这是由一个应该现在修复的错误引起的,现在还在发生吗?
【参考方案1】:
代码中存在导致此消息提示的错误。感谢曾经在 Google 解决过这个问题的人。
应该消失了。
【讨论】:
以上是关于欢迎回来,您已经通过 Google+ 登录到此应用程序 *的主要内容,如果未能解决你的问题,请参考以下文章
windows远程登录要登录到此远程计算机,您必须被授予通过终端服务登陆的权限
不安全登录被阻止:您无法获取访问令牌或从不安全页面登录到此应用程序。尝试将页面重新加载为 https://