shiro中多用户的登陆页面(multiple login pages)配置
来源:互联网 发布:南京二手房数据 编辑:程序博客网 时间:2024/05/17 02:24
<bean id="membersAuthc"class="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"><property name="loginUrl" value="${frontPath}/loginl" /><property name="successUrl" value="${frontPath}" /></bean><bean id="adminAuthc"class="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"><property name="loginUrl" value="${adminPath}/login" /><property name="successUrl" value="${adminPath}" /></bean><bean id="adminUser" class="org.apache.shiro.web.filter.authc.UserFilter"><property name="loginUrl" value="${adminPath}/login" /></bean><bean id="frontUser" class="org.apache.shiro.web.filter.authc.UserFilter"><property name="loginUrl" value="${frontPath}/login" /></bean><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" /><entry key="membersAuthc" value-ref="membersAuthc" /><entry key="adminAuthc" value-ref="adminAuthc" /><entry key="adminUser" value-ref="adminUser" /></map></property><property name="filterChainDefinitions"><value>/static/** = anon/userfiles/** = anon${adminPath}/login = authc${adminPath}/logout = logout${adminPath}/** = adminUser${frontPath}/show* = frontUser</value></property></bean>
由此可以很轻松的配置多个工程路口,比如有状态和无状态时,拥有不同的登录接口,但是希望能够共用原先的处理逻辑,此时只需要配置多个不同类型的登录页面即可。
3 0
- shiro中多用户的登陆页面(multiple login pages)配置
- liferay-portlet:login 登陆页面的修改
- liferay-portlet:login 登陆页面的简化
- Windows2008远程桌面多用户登陆的配置方法
- windows2008 远程桌面多用户登陆的配置方法
- 在Spring Security4.0 中配置自定义的login页面
- spring security对于多登陆页面多用户数据源的使用
- Shiro在Spring的RememberMe设置(免登陆配置)
- login控件的登陆成功后跳转到哪个页面
- 树莓派2(Raspberry Pi 2 )上的tightvnc多用户端口登陆配置
- Windows Server 2008远程桌面多用户登陆的配置方法
- Windows Server 2008远程桌面多用户登陆的配置方法
- Windows 2008远程桌面多用户登陆的配置方法
- Windows Server 2008远程桌面多用户登陆的配置方法
- Windows Server 2008远程桌面多用户登陆的配置方法
- Windows Server 2008远程桌面多用户登陆的配置方法
- Windows Server 2008远程桌面多用户登陆的配置方法
- .net中控制多用户登陆
- Model Thinking的几个模型杂记
- 安卓自定义的渐变TextView
- Windows7 安装.net framework 4.0 失败,错误HRESULT 0xc8000222解决办法
- bzoj1050
- SmartSvn的使用
- shiro中多用户的登陆页面(multiple login pages)配置
- 归并排序
- HDOJ 1048-The Hardest Problem Ever
- 【cocos2d 3.x】粒子plist的简单使用
- chrome显示ue-editor上传的视频问题
- tiny4412 uboot分析(2)
- 自定义图谱控件
- 设计模式六大原则(1):单一职责原则
- ANDROID L - Material Design详解(动画篇)