GAE User API with OAuth2
问题 Inside my servlets, this is how I authenticate user UserService userservice=UserServiceFactory.getUserService(); User user = userservice.getCurrentUser(); if(user == null){ response.redirect(userservice.createLoginURL("../userhome")); } More recently, in the same project I used Google Cloud Endpoints with authentication to access data using a JS client. The JS client authorizes using Oauth gapi.auth.authorize(...); Although they belong to the same App Engine Project and share the same