Token error in Google Apps Marketplace application

爷,独闯天下 提交于 2019-12-22 01:31:34

问题


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

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?


回答1:


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

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



来源:https://stackoverflow.com/questions/24350517/token-error-in-google-apps-marketplace-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!