I'm working on integrating Negotiate authentication via waffle into Shiro.

For starters I just extend BasicHttpAuthenticationFilter (will probably change to AuthenticatingFilter later), and supply my own onAccessDenied() method.

The problem I'm having is there is never a call to init() (nor onFilterConfigSet(), nor setFilterConfig()) that I can use to do some one time initialisation that requires access to the servletContext and filterConfig.

I'm guessing (wildly) that these events are never called because I only configure this filter in the shiro.ini in the [urls] section, like:

[urls]
login.jsp = waffleFilter, authc
/logout = logout
/* = waffleFilter, authc


I was trying to keep this filter simple (like the built in filter classes I see in: org.apache.shiro.web.filter.authc. Do I need to configure something more in shiro.ini to make cause the "init()" calls to occur on my filter?


Once I have the init event figured out, I will soon need access to the equivalent of the FilterChain arg in javax.servlet.Filter.doFilter().

Thanks!
Dan

Reply via email to