Hi domfarr,

I modified the xml file as your suggestion. But the url redirect to
${frontPath}/login.jsp no matter what url I input.

<bean id="membersAuthc"
class="org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter">
                <property name="loginUrl" 
value="${frontPath}/member-login.html"/>
                <property name="successUrl" value="${frontPath}" />
        </bean>
        <bean id="adminAuthc"
class="org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter">
                <property name="loginUrl" value="${adminPath}/login"/>
                <property name="successUrl" value="${adminPath}" />
        </bean>
        
        
        <bean id="shiroFilter"
class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
                <property name="securityManager" ref="securityManager" />

                <property name="filters">
            <map>
                <entry key="authc" value-ref="formAuthenticationFilter"/>
                <entry key="membersAuthc" value-ref="membersAuthc"/>
                <entry key="adminAuthc" value-ref="adminAuthc"/>
            </map>
        </property>
                <property name="filterChainDefinitions">
                        <value>
                                /static/** = anon
                                /userfiles/** = anon
                                ${adminPath}/login =  adminAuthc
                                ${adminPath}/logout = logout
                                ${adminPath}/** = user
                                ${frontPath}/** = user
                                {frontPath}/login = membersAuthc
                        </value>
                </property>
        </bean>



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/multiple-login-pages-tp7579885p7579889.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to