Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Intercept Oauth Access Token Respone

  1. #11
    Join Date
    Sep 2011
    Posts
    7

    Default

    Thanks for the reply Dave. Yes you are right i am using customized authentication so the access="ROLE_USER" is redundant. But my main concern is
    filter behavior.You can see my filter implementation as below. I just need to set a HTTP header in response.

    public class ResponseFilter implements Filter{

    @Override
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    HttpServletResponse httpResponse = (HttpServletResponse)response;
    httpResponse.setHeader("Language", "English");
    chain.doFilter(request, response);
    }
    }

  2. #12
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    That should work, so I guess you have a problem with your configuration somewhere (or else in the container, but that would be surprising). Can you debug into the filter chain and see why this filter is not being called? Or put a log statement in at least?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •