简体   繁体   English

使用Spring Security在会话超时上进行CAS注销

[英]CAS logout on session timeout using spring security

When using spring security with CAS what is the proper way to call cas logout on session time out and then redirect to re-authenciate?? 当在CAS中使用Spring Security时,什么是在会话超时时调用cas注销然后重定向到重新认证的正确方法?

 <security:http entry-point-ref="casAuthenticationEntryPoint" use-expressions="true">       
    <security:intercept-url pattern="/home" access="hasRole('ROLE_USER')"/>     

    <security:custom-filter after="CAS_FILTER" ref="casAuthenticationFilter" />
    <security:session-management session-authentication-strategy-ref="concurrentSessionControlStrategy" /> 
    <security:logout invalidate-session="true" logout-success-url="/cas-logout.jsp"/>       
 </security:http>

You can follow this link . 您可以点击此链接 You'll see that this configuration is setted in the CAS. 您会看到此配置是在CAS中设置的。 The default is the session of the user expires after 2 hours of idleness and if you would accurate this behavior you must define the archive 默认值是用户会话在闲置2个小时后过期,如果您要纠正此行为,则必须定义存档

/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketExpirationPolicies.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM