【问题标题】:Accessing SSL enabled Google Apps feed with http protocol使用 http 协议访问启用 SSL 的 Google Apps 提要
【发布时间】:2011-01-03 23:24:09
【问题描述】:

使用在整个域范围内强制实施 SSL 的 Google Apps 域上的日历构建应用程序。我最初在使用 GCal4Ruby library 构建 Rails 应用程序时发现了问题,该应用程序使用带有非 SSL 协议的 allcalendars 提要 URL(GCal4Ruby 调试输出 sn-p [原文如此]):

…
url = http://www.google.com/calendar/feeds/default/allcalendars/full
Starting post
Header: AuthorizationGoogleLogin auth=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGData-Version2.1
Redirect recieved, resending get to https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx
Redirect recieved, resending get to https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx
Redirect recieved, resending get to https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx
…

这很有趣,因为它似乎永远持续下去。我认为我已经在本地的 GCal4Ruby 中解决了这个问题,方法是创建使用带有 HTTPS 协议的 allcalendars 提要的功能(即:https://www.google.com/calendar/feeds/default/allcalendars/full)。

让我担心的是,我在 Google 文档中没有看到需要指定 HTTPS 协议的 allcalendars 提要。事实是,当我使用 PHP 中的 Zend GData 库访问同一个域时,它可以正常访问非 SSL 私有提要(即http://www.google.com/calendar/feeds/r-calendar.com_xxxxxxxxxxxxxxxxxxxxxxxxxxx%40group.calendar.google.com/private/full)。

所以,问题是:我误解了什么?是否只是需要使用 SSL 访问的 allcalendars 提要,而其余的私有提要可以安全地使用身份验证令牌?

任何人有任何见解,或指向一些好的文档?

【问题讨论】:

    标签: ruby ssl gdata-api


    【解决方案1】:

    因此,对于身份验证而言,重定向到正常 URL 似乎是正常的,但由于 Google Apps 和帐户在后端的工作方式之间存在一些差异,因此库未正确处理重定向。这与 Zend 库形成对比,后者似乎更稳健地处理了这个问题。无论如何,这是我目前的猜测。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-04
      • 2013-12-21
      • 1970-01-01
      • 1970-01-01
      • 2019-01-28
      • 2014-02-26
      相关资源
      最近更新 更多