Hi there,

I have a trouble using aprovisioning API through UserService authentication.

Here is my authentication class:

    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;

    }

And when I try to use Aprovisioning API, using the code below:

        AppsGroupsService groupsService = new
AppsGroupsService(str_domain, "spreadwords-7");
        groupsService.createGroup(groupId, groupId, groupId, "");

I get the following exception:

        com.google.gdata.util.AuthenticationException

Does anyone knows about this issue?

Thanks,

Pedro

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to