Мой проект использует Oauth2
на базе spring-security
, а поставщик ресурсов - github
. В одном случае использования токен может быть manually cleared
пользователем или expired
,и если пользователь вручную нажимает на любой виджет с зарегистрированным событием click, который отправляет запросы на сервер, я хотел бы разрешить серверу отправлять запрос redirect
во внешний интерфейс, чтобы на пользовательском интерфейсе отображалась страница входа по умолчанию, созданнаявесна после clear
и expired
.
Однако, согласно трассировке журнала, перенаправление происходит, но пользовательский интерфейс не отвечает, но я вижу запрос, перехваченный браузером.
Зависимости:
- spring-security-oauth2-autoconfigure: 2.1.2.RELEASE
- spring-security-oauth2-client: 5.1.3.RELEASE
Исключение:
2019-11-01 10:28:14.587 DEBUG 42519 --- [nio-8081-exec-2] 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.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233) ~[spring-security-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:124) ~[spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter.doFilterInternal(DefaultLogoutPageGeneratingFilter.java:52) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:206) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter.doFilterInternal(OAuth2AuthorizationRequestRedirectFilter.java:160) [spring-security-oauth2-client-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) [spring-boot-actuator-2.1.2.RELEASE.jar:2.1.2.RELEASE]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) [spring-boot-actuator-2.1.2.RELEASE.jar:2.1.2.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.4.RELEASE.jar:5.1.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:679) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) [tomcat-embed-core-9.0.14.jar:9.0.14]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.14.jar:9.0.14]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_172]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.14.jar:9.0.14]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_172]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Trying to match using NegatedRequestMatcher [requestMatcher=Ant [pattern='/**/favicon.*']]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/api/v1/buildProjectFromTemplates'; against '/**/favicon.*'
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.NegatedRequestMatcher : matches = true
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Trying to match using NegatedRequestMatcher [requestMatcher=MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@41b3781b, matchingMediaTypes=[application/json], useEquals=false, ignoredMediaTypes=[*/*]]]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : httpRequestMediaTypes=[text/plain, */*;q=0.01]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : Processing text/plain
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : application/json .isCompatibleWith text/plain = false
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : Processing */*;q=0.01
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : Ignoring
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.m.MediaTypeRequestMatcher : Did not match any media types
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.NegatedRequestMatcher : matches = true
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Trying to match using NegatedRequestMatcher [requestMatcher=RequestHeaderRequestMatcher [expectedHeaderName=X-Requested-With, expectedHeaderValue=XMLHttpRequest]]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.NegatedRequestMatcher : matches = false
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Did not match
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.s.HttpSessionRequestCache : Request not saved as configured RequestMatcher did not match
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.a.ExceptionTranslationFilter : Calling Authentication entry point.
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] s.w.a.DelegatingAuthenticationEntryPoint : Trying to match using NegatedRequestMatcher [requestMatcher=AndRequestMatcher [requestMatchers=[OrRequestMatcher [requestMatchers=[Ant [pattern='/login'], Ant [pattern='/favicon.ico']]], AndRequestMatcher [requestMatchers=[NegatedRequestMatcher [requestMatcher=RequestHeaderRequestMatcher [expectedHeaderName=X-Requested-With, expectedHeaderValue=XMLHttpRequest]], MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@41b3781b, matchingMediaTypes=[application/xhtml+xml, image/*, text/html, text/plain], useEquals=false, ignoredMediaTypes=[*/*]]]]]]]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Trying to match using OrRequestMatcher [requestMatchers=[Ant [pattern='/login'], Ant [pattern='/favicon.ico']]]
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/login']
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/api/v1/buildProjectFromTemplates'; against '/login'
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/favicon.ico']
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/api/v1/buildProjectFromTemplates'; against '/favicon.ico'
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.web.util.matcher.OrRequestMatcher : No matches found
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.util.matcher.AndRequestMatcher : Did not match
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.w.u.matcher.NegatedRequestMatcher : matches = true
2019-11-01 10:28:14.588 DEBUG 42519 --- [nio-8081-exec-2] s.w.a.DelegatingAuthenticationEntryPoint : Match found! Executing org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint@41246122
2019-11-01 10:28:14.589 DEBUG 42519 --- [nio-8081-exec-2] o.s.s.web.DefaultRedirectStrategy : Redirecting to 'http://localhost:8081/oauth2/authorization/github'
2019-11-01 10:28:14.589 DEBUG 42519 --- [nio-8081-exec-2] 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@696588ed
2019-11-01 10:28:14.589 DEBUG 42519 --- [nio-8081-exec-2] w.c.HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
2019-11-01 10:28:14.589 DEBUG 42519 --- [nio-8081-exec-2] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2019-11-01 10:28:14.604 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest$EndpointRequestMatcher@79ca7bea
2019-11-01 10:28:14.604 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/readiness/**']
2019-11-01 10:28:14.605 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.605 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/liveness/**']
2019-11-01 10:28:14.605 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.606 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/caches/**']
2019-11-01 10:28:14.606 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.606 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/health/**']
2019-11-01 10:28:14.606 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.606 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/info/**']
2019-11-01 10:28:14.607 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.607 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/prometheus/**']
2019-11-01 10:28:14.608 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.608 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/metrics/**']
2019-11-01 10:28:14.609 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.609 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/restart/**']
2019-11-01 10:28:14.609 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.609 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator']
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Mvc [pattern='/actuator/']
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : No matches found
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : No matches found
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.security.web.FilterChainProxy : /oauth2/authorization/github at position 1 of 14 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.security.web.FilterChainProxy : /oauth2/authorization/github at position 2 of 14 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] w.c.HttpSessionSecurityContextRepository : HttpSession returned null object for SPRING_SECURITY_CONTEXT
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] w.c.HttpSessionSecurityContextRepository : No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@48f2bf08. A new one will be created.
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.security.web.FilterChainProxy : /oauth2/authorization/github at position 3 of 14 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.security.web.FilterChainProxy : /oauth2/authorization/github at position 4 of 14 in additional filter chain; firing Filter: 'LogoutFilter'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/logout', GET]
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/oauth2/authorization/github'; against '/logout'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/logout', POST]
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Request 'GET /oauth2/authorization/github' doesn't match 'POST /logout'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/logout', PUT]
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Request 'GET /oauth2/authorization/github' doesn't match 'PUT /logout'
2019-11-01 10:28:14.610 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/logout', DELETE]
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Request 'GET /oauth2/authorization/github' doesn't match 'DELETE /logout'
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.util.matcher.OrRequestMatcher : No matches found
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.security.web.FilterChainProxy : /oauth2/authorization/github at position 5 of 14 in additional filter chain; firing Filter: 'OAuth2AuthorizationRequestRedirectFilter'
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/oauth2/authorization/github'; against '/oauth2/authorization/{registrationId}'
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/oauth2/authorization/github'; against '/oauth2/authorization/{registrationId}'
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] o.s.s.web.DefaultRedirectStrategy : Redirecting to 'https://github.com/login/oauth/authorize?response_type=code&client_id=5809dbeb594763fb4693&scope=read%3Aorg+repo&state=yABezec0PesI3LTWMCeg6eZHTVeEFyVnhWkhJ9gNPjQ%3D&redirect_uri=http%3A%2F%2Flocalhost%3A8081%2Flogin%2Foauth2%2Fcode%2Fgithub'
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] 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@696588ed
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] w.c.HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
2019-11-01 10:28:14.611 DEBUG 42519 --- [nio-8081-exec-3] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed