Is it possible to use client-side and server-side oauth2 authentication without requiring separate user logins for each?
The cross client identity page seems to be exactly what I want, but it doesn't describe how to achieve this for web client and server projects. https://developers.google.com/accounts/docs/CrossClientAuth
Specifically, here is what I'm trying to achieve: I have a web app which uses the drive api to create files and the drive realtime api for collaborative editing of documents, so I need to do client-side authentication. I also want to allow users to publicly share read-only copies of the documents with other users. I want to do this by storing a snapshot of the document data in google app engine that can be read by anyone, but can only be written by the user that created the google doc. This suggests that I need server-side authentication. But is there any way to do this without requiring the user to log in once for the client-side access, then again for the server side access?
This question seems to be similar: Authenticating G+ users on the server side, after client-side login but the accepted answer seems to suggest simply storing the user id on app engine and checking that the user id on the client side matches. That seems like one would only need to know the user id of the file creator to overwrite the document on the app engine server, which is not secure.