sorry..lots of typos in that response...but hopefully it still makes sense.
On 17 April 2014 16:20, Dominic Farr <[email protected]> wrote: > use two paths with difference filters. > > <property name="filterChainDefinitions"> > <value> > ${adminPath}/memberLogin = membersAuthc > ${adminPath}/adminLogin = adminAuthc > </value> > </property> > > <bean id="membersAuthc" > class="org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter"> > <property name="loginUrl" value="membersLogin.jsp"/> > </bean> > <bean id="adminAuthc" > class="org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter"> > <property name="loginUrl" value="adminLogin.jsp"/> > </bean> > > Then define two controllers in spring to that call Subject.login(). > > > On 17 April 2014 16:13, wangneng100 <[email protected]> wrote: > >> How to set? >> >> >> Hi all, >> >> I have a web app which have 2 parts:front part and backend part. Both >> part need a login page for users. >> Members need to use memberLogin.jsp to login front part. >> Admins need to use login.jsp to login backend part. >> >> I use spring-context-shiro.xml to config shiro in spring mvc. How do I >> change the config file? >> <bean id="shiroFilter" >> class="org.apache.shiro.spring.web.ShiroFilterFactoryBean"> >> <property name="securityManager" ref="securityManager" /> >> <property name="loginUrl" value="${adminPath}/login" /> >> <property name="successUrl" value="${adminPath}" /> >> <property name="filters"> >> <map> >> <entry key="authc" value-ref="formAuthenticationFilter"/> >> </map> >> </property> >> <property name="filterChainDefinitions"> >> <value> >> /static/** = anon >> /userfiles/** = anon >> ${adminPath}/login = authc >> ${adminPath}/logout = logout >> ${adminPath}/** = user >> >> ${frontpath}/edit/**=user >> </value> >> </property> >> </bean> >> >> >> >> -- >> View this message in context: >> http://shiro-user.582556.n2.nabble.com/mutiple-login-pages-tp7579885.html >> Sent from the Shiro User mailing list archive at Nabble.com. >> > >
