Hi David,

If I understand correctly, I think what you're seeing here
is that Safari is storing a login cookie for the 'dave94' account.
(It's the last account you've logged into docs.google.com with)

Then, if you try opening a doc from API results, the browser
tries to use the 'dave94' account to view that doc.  The problem is,
you used the 'clssrmtest' Google Account to authenticate to the API.

In short, the API and docs.google.com login are separate.  The
cases where this would work is
- you're using the same account for the API and that Safari has saved
- the two accounts have access to the same file.

Make sense?

Eric

On Dec 26, 10:26 am, David <[email protected]> wrote:
> I am working on a project where multiple Google logins may be used on
> one computer.  If the application tries to access files from more than
> one Google Docs login I was getting an error.  So I check the Example
> applications that were included in the API download.
>
> I have found that if I have logged into docs.google.com in Safari with
> one account ([email protected]) and viewing my list of files.  I
> then run the Examples/DocsSample.xcodeproj application and use a
> different login ([email protected]).  I get a list of the available
> files that belong to the "clssrmtest" account, but after selecting a
> file and clicking the "view" button I get a web page that has the
> following message:
>
> > We're sorry, but [email protected] does not have access to this document.
>
> > You are signed in as [email protected], but that email account hasn't been
> > granted permission to this document.
>
> > Please sign in as a different user or request access to this document.
>
> > Find out more about this topic at the Google Docs Help Center.
>
> If in Safari I select the "Sign Out" button then I am able to get the
> "clssrmtest" files using the DocSample application.
>
> 1. Is this a known issue?
> 2. Shouldn't DocSample be independent of the login used by Safari?
>
> Thanks for your help.
>
> David Fichou
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to