ruby - Accessing SSL enabled Google Apps feed with http protocol -
building app using calendar on google apps domain has ssl enforced domain-wide. found problem when building rails app using gcal4ruby library, used allcalendars feed url non-ssl protocol (gcal4ruby debug output snippet [sic]):
… url = http://www.google.com/calendar/feeds/default/allcalendars/full starting post header: authorizationgooglelogin auth=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgdata-version2.1 redirect recieved, resending https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx redirect recieved, resending https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx redirect recieved, resending https://www.google.com/calendar/feeds/default/allcalendars/full?gsessionid=xxxxxxxxxxxxxxxxxxxxxx …
this interesting because seemed continue forever. think i've fixed in gcal4ruby locally creating ability use allcalendars feed https protocol (i.e: https://www.google.com/calendar/feeds/default/allcalendars/full
).
the thing worries me see no mention of allcalendars feed needing specify https protocol in google documentation. that, , fact when access same domain using zend gdata library in php, works fine accessing non-ssl private feed (i.e. http://www.google.com/calendar/feeds/r-calendar.com_xxxxxxxxxxxxxxxxxxxxxxxxxxx%40group.calendar.google.com/private/full
).
so, question: misunderstanding? allcalendars feed needs accessed ssl , rest of private feeds can safely use authentication token?
anyone have insight, or pointers docs?
so, looks perhaps redirect normal url normal authentication, library not handling redirect correctly because of differences between way google apps , accounts work on backend. in contrast zend library, seems handle more robustly. that's current guess, anyway.
Comments
Post a Comment