UserService gets back to google.com rather than the application url

62 views
Skip to first unread message

Deepak Singh

unread,
Apr 27, 2012, 12:34:59 PM4/27/12
to google-a...@googlegroups.com

Hi,
GWT + GAE 1.6.3 project

I am using UserService as follows

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if(user !=null || userService.isUserLoggedIn()) {
return user.getEmail();
}else if(user == null || !userService.isUserLoggedIn()) {
return userService.createLoginURL(userService.createLoginURL("http://www.yatrafinder.com"));
}

It works fine in development mode but in production,

after user login it redirects the application to google.com instead of redirecting to the given url - http://www.yatrafinder.com

Can someone tell me why it is happening like this ?

Thanks
Deepak Singh

Deepak Singh

unread,
Apr 28, 2012, 3:22:45 PM4/28/12
to google-a...@googlegroups.com
Still stuck with the issue...
--
Deepak Singh

alex

unread,
Apr 28, 2012, 4:09:20 PM4/28/12
to google-a...@googlegroups.com
Why would you have userService.createLoginURL(userService.createLoginURL("http://www.yatrafinder.com")), wrapped one in another like that? I guess you should be doing something like `return userService.createLoginURL("http://www.yatrafinder.com")`, that's it. Have you ever checked Using the Users Service guide?

BTW, SO is better in cases like this one.
Reply all
Reply to author
Forward
0 new messages