Google Apps for ISP has not been transitioned to new user
infraestructure, where a Google Apps user is a Google user. It was
supposed to be migrated at end of 2011, but not yet:
http://support.google.com/a/bin/answer.py?hl=en&answer=181873,
https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/apps/new-infrastructure-for-google-apps-accounts/-EEp31DdoY0

We have a GAE application in Java, which login with Google user
service is working without a glitch in transitioned and new Google
Apps domains.

For this Googe Apps for ISP domain, we have created a new instance in
GAE with Google Apps authentication for this domain.

In theory we don't need to change code with User object (at least by
documentation), but we don't get user object properly. Our user always
is null. It's old user infraestructure not working anymore? is
necessary any modification?

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.google.gwt.sample.stockwatche.client.LoginInfo;
import com.google.gwt.sample.stockwatche.client.LoginService;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoginServiceImpl extends RemoteServiceServlet implements
    LoginService {

  public LoginInfo login(String requestUri) {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    LoginInfo loginInfo = new LoginInfo();

    if (user != null) {
      loginInfo.setLoggedIn(true);
      loginInfo.setEmailAddress(user.getEmail());
      loginInfo.setNickname(user.getNickname());
      loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
    } else {
      loginInfo.setLoggedIn(false);
      loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
    }
    return loginInfo;
  }

}

Thanks

GAE SDK version 1.5.5

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to