public class BusAuthenticationFilter extends Object implements javax.servlet.Filter
Filter that is used to protect the Errai bus. This is particularly useful
when running in an environment where the Errai app is protected by FORM based auth.
FORM based auth sitting in front of the bus will break it. So instead we can
exclude the errai bus from authentication and instead protect it with this filter,
which must detect whether the user is authenticated and respond with a proper HTTP
401 response code (which can then be processed by the client in some reasonable way).| Constructor and Description |
|---|
BusAuthenticationFilter()
C'tor
|
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionFilter.init(javax.servlet.FilterConfig)public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)public void destroy()
destroy in interface javax.servlet.FilterFilter.destroy()Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.