Does document "export" work with secure AuthSub?

5 views
Skip to first unread message

Randy

unread,
Nov 20, 2009, 6:50:05 PM11/20/09
to Google Documents List API
Using secure AuthSub with the Documents API from my PHP application, I
can access the documents feed. However, when I try to "export" a
docment, I get redirected to a new link and if I follow that I get a
login page.

The same document export function works fine w/o secure AuthSub (just
plain AuthSub).

I tried this with both the Gdata PHP library, and a modification of
this simple test program: http://gdatatips.blogspot.com/2008/07/secure-authsub-in-php.html

I'm able to upgrade my single use token to a session token (with
signing). And, I can retrieve calendar data. I only get this issue
with document "export".

So, does anyone know if secure AuthSub and document export are
compatible?

Thanks,

Randy

Eric Bidelman

unread,
Nov 20, 2009, 6:53:01 PM11/20/09
to google-docum...@googlegroups.com
Hmm, it should work.  Do you have a test script I can run?

Eric

Randy

unread,
Nov 23, 2009, 9:21:21 PM11/23/09
to Google Documents List API
Thanks for the (PM) test code Eric. It works. (my test code had a
bug)

While it doesn't explain my original issue (I modified the docs in
Zend Gdata to support exporting and secure AuthSub), instead of fixing
it properly I'm simply going to brute force the export via curl for
now.

So, thanks for your help.

- Randy

Eric Bidelman

unread,
Nov 24, 2009, 11:47:35 AM11/24/09
to google-docum...@googlegroups.com
There's also this that you might be interested in:

Eric
Reply all
Reply to author
Forward
0 new messages