I am working on a X509AuthenticationFilter which extends
AuthenticatingFilter. If there is a problem I want to return a 401
Unauthorized. If I try the following I get a HTTP ERROR 500. Is there any
way to get it to return a 401?
@Override
protected AuthenticationToken createToken(ServletRequest request,
ServletResponse response) throws Exception {
throw new UnauthenticatedException("DDDDDD");
}
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Returning-401-Unauthorized-in-AuthenticatingFilter-tp7580044.html
Sent from the Shiro User mailing list archive at Nabble.com.