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; }