Basically I have set up the following filter...
package com.kodak.intersystem.appspot.server;
import java.io.IOException;
import java.util.logging.Logger;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
public class IdentityFilterImpl implements Filter
{
private FilterConfig filterConfig;
private static final Logger log =
Logger.getLogger(IdentityFilterImpl.class.getName());
//@Override
public void destroy()
{
}
//@Override
public void doFilter(ServletRequest servletRequest, ServletResponse
servletResponse, FilterChain filterChain)
throws IOException, ServletException
{
log.info("Identity filter processed a " +
getFilterConfig().getInitParameter("logType") + " request");
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if (user != null)
{
log.warning("Identity filter user.getAuthDomain() = "
+ user.getAuthDomain());
log.warning("Identity filter user.getEmail() ) = "
+ user.getEmail());
log.warning("Identity filter user.getFederatedIdentity() = "
+ user.getFederatedIdentity());
log.warning("Identity filter user.getNickname() = "
+ user.getNickname());
log.warning("Identity filter user.getUserId() = "
+ user.getUserId());
log.warning("Identity filter user.toString() = "
+ user.toString());
//resp.setContentType("text/plain");
//resp.getWriter().println("Hello, " +
user.getNickname());
}
else
{
log.severe("Identity filter - uknown user");
}
filterChain.doFilter(servletRequest, servletResponse);
}
//@Override
public void init(FilterConfig filterConfig) throws ServletException
{
this.filterConfig = filterConfig;
}
public FilterConfig getFilterConfig() { return filterConfig; }
}
Is it the filter that is causing the problem?
Cheers, Eric
On May 29, 11:30 pm, Bert <[email protected]> wrote:
> Hey Eric,
>
> In the request handler where you're redirected to after login with
> OpenId, make sure that handler doesn't cause the redirect loop. So
> look how you're checking for logged in user before redirecting to the
> login page again.
>
> Cheers,
> Rob
>
> On May 29, 6:40 pm, Eric Kolotyluk <[email protected]> wrote:
>
>
>
>
>
>
>
> > I tried clearing the cookies and restarting the browser several times,
> > but that did not seem to help.
>
> > Cheers, Eric
--
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.