From 6b29f9c3ddf5ec542f38d3db7b0ea475a5dc095a Mon Sep 17 00:00:00 2001 From: smallbun <2689170096@qq.com> Date: Tue, 3 Jan 2023 13:45:26 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BC=9A=E8=AF=9DID?= =?UTF-8?q?=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../topiam/employee/protocol/cas/idp/CasIdpConfigurer.java | 3 +-- .../cas/idp/endpoint/CasIdpSingleSignOnEndpointFilter.java | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/CasIdpConfigurer.java b/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/CasIdpConfigurer.java index 605e605b..0016cffb 100644 --- a/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/CasIdpConfigurer.java +++ b/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/CasIdpConfigurer.java @@ -57,8 +57,7 @@ public class CasIdpConfigurer> DocumentBuilder documentBuilder = getDocumentBuilder(http); //CAS 登陆过滤器 http.addFilterAfter(new CasIdpSingleSignOnEndpointFilter(applicationServiceLoader, - sessionRegistry, centralAuthenticationService), - UsernamePasswordAuthenticationFilter.class); + centralAuthenticationService), UsernamePasswordAuthenticationFilter.class); //cas 验证过滤器 http.addFilterBefore( diff --git a/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/endpoint/CasIdpSingleSignOnEndpointFilter.java b/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/endpoint/CasIdpSingleSignOnEndpointFilter.java index 14c72c64..4fa55834 100644 --- a/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/endpoint/CasIdpSingleSignOnEndpointFilter.java +++ b/eiam-protocol/eiam-protocol-cas/src/main/java/cn/topiam/employee/protocol/cas/idp/endpoint/CasIdpSingleSignOnEndpointFilter.java @@ -30,7 +30,6 @@ import org.slf4j.LoggerFactory; import org.springframework.boot.web.servlet.filter.OrderedFilter; import org.springframework.core.Ordered; import org.springframework.http.HttpMethod; -import org.springframework.security.core.session.SessionRegistry; import org.springframework.security.web.util.matcher.AntPathRequestMatcher; import org.springframework.security.web.util.matcher.RequestMatcher; import org.springframework.util.CollectionUtils; @@ -76,15 +75,11 @@ public class CasIdpSingleSignOnEndpointFilter extends OncePerRequestFilter */ private final ApplicationServiceLoader applicationServiceLoader; - private final SessionRegistry sessionRegistry; - private final CentralAuthenticationService centralAuthenticationService; public CasIdpSingleSignOnEndpointFilter(ApplicationServiceLoader applicationServiceLoader, - SessionRegistry sessionRegistry, CentralAuthenticationService centralAuthenticationService) { this.applicationServiceLoader = applicationServiceLoader; - this.sessionRegistry = sessionRegistry; this.centralAuthenticationService = centralAuthenticationService; }