3

我们正在为我们的客户使用带有 authsub & 2LO 和 OAuth2.0 身份验证的 Google Calendar API v2 和 V3。我们的大多数客户经常收到授权异常。有些从上周开始变得不一致。在分析我们的日志时,printstacktrace 是

com.google.gdata.util.AuthenticationException:未知的授权标头 未知的授权标头

未知的授权标头

错误 401

在 com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:608) 在 com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564) 在 com.google.gdata.client .http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560) 在 com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538) 在 com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest .java:536) 在 com.google.gdata.client.Service.getFeed(Service.java:1135) 在 com.google.gdata.client.Service.getFeed(Service.java:998) 在 com.google.gdata。 com.google.gdata.client.Service.getFeed(Service.java:1017) 上的 client.GoogleService.getFeed(GoogleService.java:645)

注意:使用 API v2 和 authsub & 2LO 大约 2 年。

任何帮助,将不胜感激。

4

2 回答 2

3

最近我们的软件中也出现了同样的问题。我们得到 com.google.gdata.util.AuthenticationException: Unknown authentication header。有人解决了这个???

于 2013-12-20T07:25:50.560 回答
1

根据弃用政策 , Google 帐户身份验证 API(ClientLogin、AuthSub 和 OAuth 1.0 )已弃用。http://googledevelopers.blogspot.com/2012/04/changes-to-deprecation-policies-and-api.html

重要提示:AuthSub 已于 2012 年 4 月 20 日正式弃用。它将根据我们的弃用政策继续工作,但我们建议您尽快迁移到 OAuth 2.0

于 2014-01-10T13:26:21.857 回答