I'm using struts framework in my application.
I want Google authentication for all the request coming to my application.
So I putted one filter which invoke for all request.
Login code inside the filter is like-
if (request.getUserPrincipal() != null) {
chain.doFilter(request, response);// forward the request to action
} else {
UserService userService = UserServiceFactory.getUserService();
response.sendRedirect(userService.createLoginURL(request.getRequestURI()));
}
Sometime It is working fine, but sometime it redirects the user to Google
login page twice.
I don't know why this is happening. Can anyone help on this?
--
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.