views:

46

answers:

0

Hey,

I want to be able to have say 10 admin users store all their documents on google docs for a domain ('http://docs.google.com/a/domain.com'), and have everyone else be able to view them through 'domain.com/documents'. I'm just not certain how the whole authentication thing works in that case. Should I use OAuth, or would ClientLogin suffice?

I would like it so the user has no idea they're accessing google docs, so I don't want them to have to say "Yes, Authenticate this App with Google", as seen in this Doclist Manager App.

The app is basically:

  1. Admin stores a bunch of forms and documents
  2. User uses form and views documents the admin has posted

... so there's no need to access the user's Google Docs. But it seems like AuthSub and OAuth are addressing that instead...

I've used ClientLogin with the gdata gem to successfully view everything in the google api for my personal account, where the base url is: http://docs.google.com.

However, when I try that same method with Google Apps (for adomain.com, and the root url is http://docs.google.com/a/adomain.com, I am able to retrieve the document feed but receive a "Moved Temporarily" message when I try to access the document at http://docs.google.com/a/adomain.com/View?docID=the-id&revision=_latest.

I can view it fine on my personal account at http://docs.google.com/View?docID=the-id&revision=_latest however. What am I missing?

Thanks for the tips.