Wow - I guess my Google chops are in need of tuning (too verbose!)
Thanks for the thread, I'll go check it out!
I've followed the direction on the referenced thread and I think I've got everything working.
However, I'm not able to read in my init-params from the configuration in web-inf-extension-configuration.xml
These params used to be in my web.xml file, and now I've got them like this:
<property name="APP_ID" value="1234"/>
<property name="APP_ID_KEY" value="aaabbbcccddd111222333444"/>
<property name="APP_ADMIN_PASSWORD" value="abcde12345"/>
<name>Auth Filter Definition</name>
<!-- The filter instance -->
<!-- The mapping to use -->
<!-- WARNING: the mapping is expressed with regular expressions -->
<collection type="java.util.ArrayList" item-type="java.lang.String">
I'm not sure I've done this correctly, and when my filter tries filterConfig.getInitParameter("APP_ID") it throws NPE.
Am I supposed to use a different <name> in the <properties-param> ?
I just noticed that the interface org.exoplatform.web.filter.Filter does not include methods for init and destroy, which I was using to populate my FilterConfig (and contained the properties).
I think that you need to create constructor of your filter, which will just accept InitParams as the argument and read parameters here. Something like
public MyFilter implements Filter
public MyFilter(InitParams params)
// Read other parameters here