Google Apps Marketplace应用程序中的令牌错误 [英] Token error in Google Apps Marketplace application

查看:96
本文介绍了Google Apps Marketplace应用程序中的令牌错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个部署在App Engine上的Google Apps Marketplace应用程序,并使用gdata API,并且在3天前(6月20日)我们开始在日志中收到此错误:

We have a Google Apps Marketplace app which is deployed on App Engine, and uses the gdata APIs and as of a 3 days ago (20 of June) we started getting this error in the logs:

Unauthorized - Server responded with: 401, <HTML>
<HEAD>
<TITLE>Token invalid - Target is disabled.</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Token invalid - Target is disabled.</H1>
<H2>Error 401</H2>
</BODY>
</HTML>

这是引发错误的代码片段:

This is the piece of code that raises the error:

two_legged_oauth_token = gdata.gauth.TwoLeggedOAuthHmacToken(CONSUMER_KEY, CONSUMER_SECRET, admin_email)

# Email Settings API client
email_settings_client = gdata.apps.emailsettings.client.EmailSettingsClient(domain=domain)
email_settings_client.auth_token = two_legged_oauth_token
sig = email_settings_client.RetrieveSignature(username=guid) #this line throws the error

我知道这些API和两项认证即将被弃用,但谷歌表示,它不应该在下个月左右发生。代码或服务器中的任何内容都没有改变,所以我不确定错误说的是什么,Google使用Google没有提供任何见解。这可能意味着什么?

I know the APIs and the two legged auth are about to be deprecated, but Google says it's not supposed to happen until next month or so. Nothing in the code or the servers has changed, so I'm not sure what the error says, and googling hasn't provided me with any insights. What this might mean?

推荐答案

只需很长时间,但如果您使用OpenId进行身份验证,则此服务可能已关闭下。

Just a long shot, but if you are using OpenId for authentication, this service may have been closed down.

您可以在这里找到重要的迁移详情: https://developers.google.com/+/api/auth-migration

Here you find important migration details : https://developers.google.com/+/api/auth-migration

这篇关于Google Apps Marketplace应用程序中的令牌错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆