Currently there is no support for referencing Spring-configured
objects within the INI text configuration part. So you will have to
define your authFilter directly in the INI config:
<bean id="shiroFilter" class="org.apache.shiro.web.servlet.IniShiroFilter">
<property name="securityManager" ref="secManager"/>
<property name="config">
<value>
[filters]
authFilter = com.hp.spike.CustomHttpAuthenticationFilter
[urls]
/* = authFilter
</value>
</property>
</bean>
Cheers,
Les
On Tue, Jan 19, 2010 at 12:47 PM, char_lee <[email protected]> wrote:
>
> AHH yes I have manage to wire things up.. For some reason tho I haven't been
> able to wire the [urls]. Am i doing something wrong? This is what I have:
>
> <bean name="hpRealm" class="com.hp.spike.HpRealm"/>
>
> <bean id="secManager" class="com.hp.spike.CustomeWebSecurityManager">
> <property name="realm" ref="hpRealm"/>
> <property name="sessionMode" value="native"/>
>
> </bean>
>
>
> <bean id="authFilter" class="com.hp.spike.CustomeHttpAuthenticationFilter"
> />
>
> <bean id="shiroFilter"
> class="org.apache.shiro.web.servlet.IniShiroFilter">
> <property name="securityManager" ref="secManager"/>
> <property name="config">
> <value>
> [urls]
> /* = authFilter
> </value>
>
> </property>
>
> </bean>
>
>
> Then when i hit my REST endpoint it does call my
> CustomeHttpAuthenticationFilter.isAccessAllowed :(
>
> --
> View this message in context:
> http://n2.nabble.com/Shiro-Spring-filter-tp4419140p4421723.html
> Sent from the Shiro Developer mailing list archive at Nabble.com.
>