带spring引导适配器和多租户的KeyClope无限重定向循环

xbp102n0  于 2021-10-10  发布在  Java
关注(0)|答案(0)|浏览(203)

当我想要得到一个领域的端点时,keydape会将我重定向到无限循环,如:
http://localhost:8080/api/0/cooperation/60/sso/login
下一次迭代如下所示:http://localhost:8080/api/0/cooperation/60/sso/login/sso/login
并继续添加/sso/login。它没有为我提供登录页面进行身份验证。
我为多租户配置了pathbasedconfigresolver解析方法
日志如下

2021-05-25 20:20:04.073  INFO 2100 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8090 (http) with context path ''
2021-05-25 20:20:04.088  INFO 2100 --- [  restartedMain] c.s.ita.homeproject.HomeApplication      : Started HomeApplication in 8.057 seconds (JVM running for 9.083)
2021-05-25 20:20:04.282  INFO 2100 --- [)-192.168.0.117] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-05-25 20:20:04.282  INFO 2100 --- [)-192.168.0.117] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-05-25 20:20:04.289  INFO 2100 --- [)-192.168.0.117] o.s.web.servlet.DispatcherServlet        : Completed initialization in 7 ms
2021-05-25 20:20:12.327 DEBUG 2100 --- [nio-8080-exec-1] o.k.adapters.PreAuthActionsHandler       : adminRequest http://localhost:8080/api/0/cooperation/60
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
2021-05-25 20:20:12.371 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Using provider 'secret' for authentication of client 'web'
2021-05-25 20:20:12.373 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider secret
2021-05-25 20:20:12.374 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider jwt
2021-05-25 20:20:12.374 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider secret-jwt
2021-05-25 20:20:12.375 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider secret
2021-05-25 20:20:12.376 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider jwt
2021-05-25 20:20:12.376 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.a.ClientCredentialsProviderUtils   : Loaded clientCredentialsProvider secret-jwt
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
2021-05-25 20:20:12.387 DEBUG 2100 --- [nio-8080-exec-1] .k.a.t.AbstractAuthenticatedActionsValve : AuthenticatedActionsValve.invoke /api/0/cooperation/60
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
2021-05-25 20:20:12.388 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.AuthenticatedActionsHandler        : AuthenticatedActionsValve.invoke http://localhost:8080/api/0/cooperation/60
2021-05-25 20:20:12.389 DEBUG 2100 --- [nio-8080-exec-1] o.k.a.AuthenticatedActionsHandler        : Policy enforcement is disabled.
2021-05-25 20:20:12.399 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 1 of 13 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2021-05-25 20:20:12.399 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 2 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2021-05-25 20:20:12.401 DEBUG 2100 --- [nio-8080-exec-1] w.c.HttpSessionSecurityContextRepository : No HttpSession currently exists
2021-05-25 20:20:12.401 DEBUG 2100 --- [nio-8080-exec-1] w.c.HttpSessionSecurityContextRepository : No SecurityContext was available from the HttpSession: null. A new one will be created.
2021-05-25 20:20:12.404 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 3 of 13 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2021-05-25 20:20:12.405 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 4 of 13 in additional filter chain; firing Filter: 'CorsFilter'
2021-05-25 20:20:12.406 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 5 of 13 in additional filter chain; firing Filter: 'KeycloakPreAuthActionsFilter'
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
2021-05-25 20:20:12.412 DEBUG 2100 --- [nio-8080-exec-1] o.k.adapters.PreAuthActionsHandler       : adminRequest http://localhost:8080/api/0/cooperation/60
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 6 of 13 in additional filter chain; firing Filter: 'LogoutFilter'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/cooperation/*/logout', GET]
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/cooperation/*/logout'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/cooperation/*/logout', POST]
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /api/0/cooperation/60' doesn't match 'POST /cooperation/*/logout'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/cooperation/*/logout', PUT]
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /api/0/cooperation/60' doesn't match 'PUT /cooperation/*/logout'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/cooperation/*/logout', DELETE]
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /api/0/cooperation/60' doesn't match 'DELETE /cooperation/*/logout'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.web.util.matcher.OrRequestMatcher  : No matches found
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 7 of 13 in additional filter chain; firing Filter: 'KeycloakAuthenticationProcessingFilter'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/cooperation/*/sso/login'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 8 of 13 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.s.HttpSessionRequestCache        : saved request doesn't match
2021-05-25 20:20:12.413 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 9 of 13 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
2021-05-25 20:20:12.414 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 10 of 13 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
2021-05-25 20:20:12.415 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.a.AnonymousAuthenticationFilter  : Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@c1fef79b: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
2021-05-25 20:20:12.415 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter'
2021-05-25 20:20:12.415 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.session.SessionManagementFilter  : Requested session ID 7999A70DE83DDF60402F4DE299A90ED9 is invalid.
2021-05-25 20:20:12.415 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
2021-05-25 20:20:12.415 DEBUG 2100 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy        : /api/0/cooperation/60 at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
2021-05-25 20:20:12.416 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /api/0/cooperation/60' doesn't match 'OPTIONS /**'
2021-05-25 20:20:12.416 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/logout'
2021-05-25 20:20:12.417 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/'
2021-05-25 20:20:12.417 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/unsecured'
2021-05-25 20:20:12.417 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/**/'
2021-05-25 20:20:12.417 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.a.i.FilterSecurityInterceptor    : Secure object: FilterInvocation: URL: /api/0/cooperation/60; Attributes: [authenticated]
2021-05-25 20:20:12.417 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.a.i.FilterSecurityInterceptor    : Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@c1fef79b: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS
2021-05-25 20:20:12.421 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.access.vote.AffirmativeBased       : Voter: org.springframework.security.web.access.expression.WebExpressionVoter@5d4b6eb6, returned: -1
2021-05-25 20:20:12.431 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.a.ExceptionTranslationFilter     : Access is denied (user is anonymous); redirecting to authentication entry point

org.springframework.security.access.AccessDeniedException: Access is denied
    at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84) ~[spring-security-core-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233) ~[spring-security-core-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:123) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.keycloak.adapters.springsecurity.filter.KeycloakPreAuthActionsFilter.doFilter(KeycloakPreAuthActionsFilter.java:96) ~[keycloak-spring-security-adapter-13.0.0.jar:13.0.0]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:92) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.3.6.RELEASE.jar:5.3.6.RELEASE]
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93) ~[spring-boot-actuator-2.3.8.RELEASE.jar:2.3.8.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67) ~[spring-boot-container-bundle-13.0.0.jar:13.0.0]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181) ~[spring-boot-container-bundle-13.0.0.jar:13.0.0]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.41.jar:9.0.41]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]

2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using Ant [pattern='/**', GET]
2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request '/api/0/cooperation/60' matched by universal pattern '/**'
2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using NegatedRequestMatcher [requestMatcher=Ant [pattern='/**/favicon.*']]
2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/api/0/cooperation/60'; against '/**/favicon.*'
2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.NegatedRequestMatcher  : matches = true
2021-05-25 20:20:12.437 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using NegatedRequestMatcher [requestMatcher=MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@5c15eb7, matchingMediaTypes=[application/json], useEquals=false, ignoredMediaTypes=[*/*]]]
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : httpRequestMediaTypes=[*/*]
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Processing */*
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Ignoring
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Did not match any media types
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.NegatedRequestMatcher  : matches = true
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using NegatedRequestMatcher [requestMatcher=RequestHeaderRequestMatcher [expectedHeaderName=X-Requested-With, expectedHeaderValue=XMLHttpRequest]]
2021-05-25 20:20:12.438 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.NegatedRequestMatcher  : matches = true
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using NegatedRequestMatcher [requestMatcher=MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@5c15eb7, matchingMediaTypes=[multipart/form-data], useEquals=false, ignoredMediaTypes=[*/*]]]
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : httpRequestMediaTypes=[*/*]
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Processing */*
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Ignoring
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Did not match any media types
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.NegatedRequestMatcher  : matches = true
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : Trying to match using NegatedRequestMatcher [requestMatcher=MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@5c15eb7, matchingMediaTypes=[text/event-stream], useEquals=false, ignoredMediaTypes=[*/*]]]
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : httpRequestMediaTypes=[*/*]
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Processing */*
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Ignoring
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.m.MediaTypeRequestMatcher      : Did not match any media types
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.u.matcher.NegatedRequestMatcher  : matches = true
2021-05-25 20:20:12.439 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher   : All requestMatchers returned true
2021-05-25 20:20:12.464 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.s.HttpSessionRequestCache        : DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/api/0/cooperation/60]
2021-05-25 20:20:12.464 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.a.ExceptionTranslationFilter     : Calling Authentication entry point.
Path http://localhost:8080/api/0/cooperation/60
MultitenantIndex 28
Realm 60
реквест 
2021-05-25 20:20:12.465 DEBUG 2100 --- [nio-8080-exec-1] o.s.s.w.header.writers.HstsHeaderWriter  : Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher@3fd47b64
2021-05-25 20:20:12.465 DEBUG 2100 --- [nio-8080-exec-1] w.c.HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
60/sso/login
2021-05-25 20:20:12.467 DEBUG 2100 --- [nio-8080-exec-1] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2021-05-25 20:20:12.923 DEBUG 2100 --- [nio-8080-exec-3] o.k.adapters.PreAuthActionsHandler       : adminRequest http://localhost:8080/api/0/cooperation/60/sso/login

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题