shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangneng100 <>
Subject Re: mutiple login pages
Date Thu, 17 Apr 2014 15:55:34 GMT
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"
  		<property name="loginUrl" value="${frontPath}/member-login.html"/>
  		<property name="successUrl" value="${frontPath}" />
	<bean id="adminAuthc"
  		<property name="loginUrl" value="${adminPath}/login"/>
  		<property name="successUrl" value="${adminPath}" />
	<bean id="shiroFilter"
		<property name="securityManager" ref="securityManager" />

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

View this message in context:
Sent from the Shiro User mailing list archive at

View raw message