【发布时间】: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 提要,而其余的私有提要可以安全地使用身份验证令牌?
任何人有任何见解,或指向一些好的文档?
【问题讨论】: