【问题标题】:com.google.gdata.util.AuthenticationException: Unknown authorization header for GCalendarcom.google.gdata.util.AuthenticationException:GCalendar 的未知授权标头
【发布时间】:2014-01-01 07:49:19
【问题描述】:

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

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

未知 授权标头

错误401

at 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.client.GoogleService.getFeed(GoogleService.java:645) 在 com.google.gdata.client.Service.getFeed(Service.java:1017)

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

任何帮助将不胜感激。

【问题讨论】:

    标签: google-api google-calendar-api google-oauth google-authentication authsub


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2011-04-07
        • 2012-04-04
        • 2011-06-23
        • 2021-11-21
        • 1970-01-01
        • 1970-01-01
        • 2013-11-28
        • 2018-04-28
        • 2015-11-05
        相关资源
        最近更新 更多