The methods available to the users service are documented here: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html
The Users Service doesn't provide an AuthSub token: http://code.google.com/apis/gdata/javadoc/ That's not great, I know. You might also want to ask on the Accounts API list - there might be other creative ways this has been worked around by other users: http://groups.google.com/group/Google-Accounts-API On Mon, Dec 28, 2009 at 3:19 PM, zackmac <[email protected]> wrote: > In my GAE/J web application, users authenticate via their google > account. I check to see they've signed into google via this code in > my jsp: > > UserService userService = UserServiceFactory.getUserService(); > User user = userService.getCurrentUser(); > if (user == null) > response.sendRedirect("/index.jsp"); > > Is there anyway to use the user object above to query for that user's > spreadsheets? I'm thinking that it would involve using > user.getAuthDomain() but not sure if I'm right here. For instance, > would this work?... service.setAuthSubToken(user.getAuthDomain()); > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
