I implemented Single Sign On into my application. Now I got URL's which I dont want to use with single sign on (for example an unprotected webservice). How I can I do that? Is there an SPNEGO init param, which is supported?
myapp
/faces/index.xhtml
java.lang.Exception
/faces/error.xhtml
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
/faces/*
Jersey REST Service
com.sun.jersey.spi.container.servlet.ServletContainer
jersey.config.server.provider.packages
prototype
3
Jersey REST Service
/rest/*
Now I would like to configure something like this:
SpnegoHttpFilter
net.sourceforge.spnego.SpnegoHttpFilter
[...]
excludePattern
.*rest.*
Edited: 09/11/2018 01:35 PM
In the SPNEGO sources, in class SpnegoHttpFilter.java I found what I was looking for (including the comment):
@Override
public void doFilter(final ServletRequest request, final ServletResponse response
, final FilterChain chain) throws IOException, ServletException {
final HttpServletRequest httpRequest = (HttpServletRequest) request;
final SpnegoHttpServletResponse spnegoResponse = new SpnegoHttpServletResponse(
(HttpServletResponse) response);
// skip authentication if resource is in the list of directories to exclude
if (exclude(httpRequest.getContextPath(), httpRequest.getServletPath())) {
chain.doFilter(request, response);
return;
}
But now my question is, how does this function retrieve a list of directories to skip authentication?