Google Cloud Endpoints has it's own authentication process in which the backend endpoint method is simply passed a com.google.appengine.api.users.User
object.
https://cloud.google.com/appengine/docs/java/endpoints/auth
The Google+ Domains API specifies its own authentication process in order to get the com.google.api.client.auth.oauth2.Credential
object. This allows for the building of the com.google.api.services.plusDomains.PlusDomain
object.
https://developers.google.com/+/domains/authentication/
How would you integrate these two authentication processes? This is for a web app (Java Script) with a Google App Engine (Java) backend.
In an ideal situation, I would like to be able to retrieve the users bio/profile basic info via my JS app while the user is offline.
Use Case: I have a comment thread where each comment has an author persisted in the Google Datastore as a com.google.appengine.api.users.User
object. However when I render the comment thread in my JS web app I would like to show a profile picture for each author. If I could make a call from the web app to retrieve the bio for each commenter I could save the backend a lot of work. The web app would have the user object as JSON. Which includes the user ID and email.