fix integration tests

This commit is contained in:
Sebastian Sdorra
2011-10-06 18:34:44 +02:00
parent b723c3e199
commit 666a1fcbc3

View File

@@ -58,6 +58,11 @@ import javax.servlet.http.HttpServletResponse;
public class ApiBasicAuthenticationFilter extends BasicAuthenticationFilter
{
/** Field description */
public static final String URI_AUTHENTICATION = "/api/rest/authentication";
//~--- constructors ---------------------------------------------------------
/**
* Constructs ...
*
@@ -73,6 +78,34 @@ public class ApiBasicAuthenticationFilter extends BasicAuthenticationFilter
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @param request
* @param response
* @param chain
*
* @throws IOException
* @throws ServletException
*/
@Override
protected void doFilter(HttpServletRequest request,
HttpServletResponse response, FilterChain chain)
throws IOException, ServletException
{
// skip filter on authentication resource
if (request.getRequestURI().contains(URI_AUTHENTICATION))
{
chain.doFilter(request, response);
}
else
{
super.doFilter(request, response, chain);
}
}
/**
* Method description
*