Получение НедостаточноеAuthenticationException - PullRequest
0 голосов
/ 21 июня 2019

Попытка получить этот пример (https://github.com/spring-guides/tut-spring-boot-oauth2/tree/master/auth-server) работа с загрузкой Spring Spring 2.1.6-RELEASE. Вместо Facebook / Github я использую PING-клиент.

2019-06-21 04: 47: 05.312 DEBUG 92124 --- [nio-8080-exec-1] .s.o.p.e.FrameworkEndpointHandlerMapping: метод возврата обработчика [public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize (java.util.Map, java.util.Map, org.springframework.web.bind.support.SessionStatus, java.security.Principal)] 2019-06-21 04: 47: 05.343 DEBUG 92124 --- [nio-8080-exec-1] o.s.s.w.a.ExceptionTranslationFilter: исключение аутентификации произошло; перенаправление на точку входа аутентификации

org.springframework.security.authentication.InsufficientAuthenticationException: Пользователь должен пройти аутентификацию в Spring Security перед авторизацией может быть завершено. в org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize (AuthorizationEndpoint.java:138) ~ [spring-security-oauth2-2.2.1.RELEASE.jar: na] в sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) ~ [na: 1.8.0_152] в sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) ~ [na: 1.8.0_152] в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) ~ [na: 1.8.0_152] на java.lang.reflect.Method.invoke (Method.java:498) ~ [na: 1.8.0_152] в org.springframework.web.method.support.InvocableHandlerMethod.doInvoke (InvocableHandlerMethod.java:209) ~ [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest (InvocableHandlerMethod.java:136) ~ [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle (ServletInvocableHandlerMethod.java:102) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod (RequestMappingHandlerAdapter.java:877) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal (RequestMappingHandlerAdapter.java:783) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle (AbstractHandlerMethodAdapter.java:87) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:991) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:925) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:974) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.servlet.FrameworkServlet.doGet (FrameworkServlet.java:866) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в javax.servlet.http.HttpServlet.service (HttpServlet.java:635) ~ [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.web.servlet.FrameworkServlet.service (FrameworkServlet.java:851) ~ [spring-webmvc-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в javax.servlet.http.HttpServlet.service (HttpServlet.java:742) ~ [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52) ~ [tomcat-embed-websocket-8.5.29.jar: 8.5.29] вorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:320) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke (FilterSecurityInterceptor.java:127) ~ [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter (FilterSecurityInterceptor.java:91) ~ [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.access.ExceptionTranslationFilter.doFilter (ExceptionTranslationFilter.java:119) ~ [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.session.SessionManagementFilter.doFilter (SessionManagementFilter.java:137) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter (AnonymousAuthenticationFilter.java:111) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter (SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter (RequestCacheAwareFilter.java:63) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.web.filter.CompositeFilter $ VirtualFilterChain.doFilter (CompositeFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter (AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.web.filter.CompositeFilter $ VirtualFilterChain.doFilter (CompositeFilter.java:112) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.filter.CompositeFilter.doFilter (CompositeFilter.java:73) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.authentication.logout.LogoutFilter.doFilter (LogoutFilter.java:116) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] вorg.springframework.security.web.csrf.CsrfFilter.doFilterInternal (CsrfFilter.java:100) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilin4: фильтр (CC)[spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal (HeaderWriterFilter.java:66) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter (SecurityContextPersistenceFilter.java:105) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal (WebAsyncManagerIntegrationFilter.java:56) -web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:334) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy.doFilterInternal (FilterChainProxy.java:215) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.security.web.FilterChainProxy.doFilter (FilterChainProxy.Ява: 178) [spring-security-web-5.0.4.RELEASE.jar: 5.0.4.RELEASE] в org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (DelegatingFilterProxy.java:357) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.filter.DelegatingFilterProxy.doFilter (DelegatingFilterProxy.java:270) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java.java:193).) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter (OAuth2ClientContextFilter.java:60) [spring-security-oauth2-2.2.1.RELEASE.jar: na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] at org.springframework.web.filter.RequestContextFilter.doFilterInternal (RequestContextFilter.java:99) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] вorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFil.java: 166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal (HttpPutFormContentFilter.java:109) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] вorg.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal (HiddenHttpMethodFilter.java:81) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter.java:200) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) [spring-web-5.0.5.RELEASE.jar: 5.0.5.RELEASE] в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:198) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:96) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:496) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:140) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:81) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:87) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:342) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:803) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:790) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1459) [tomcat-embed-core-8.5.29.jar: 8.5.29] в org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49) [tomcat-embed-core-8.5.29.jar: 8.5.29] в java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) [na: 1.8.0_152] в java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624) [na: 1.8.0_152] в org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) [tomcat-embed-core-8.5.29.jar: 8.5.29] в java.lang.Thread.run (Thread.java:748) [na: 1.8.0_152]

2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] o.s.s.w.util.matcher.AndRequestMatcher: Попытка сопоставления с использованием Ant [pattern = '/ ', GET] 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] o.s.s.w.u.matcher.AntPathRequestMatcher: Запрос '/ oauth / authorize' соответствует универсальному шаблону '/ ' 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1]osswutil.matcher.AndRequestMatcher: Попытка сопоставления с использованием NegatedRequestMatcher [requestMatcher = Ant [pattern = '/ / favicon.ico']] 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumatcher.AntPathRequestMatcher: проверка соответствия запроса: '/ oauth / authorize';против '//favicon.ico' 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumatcher.NegatedRequestMatcher: соответствует = true 2019-06-21 04:47: 05,344 ОТЛАДКА 92124 --- [NiO-8080-Exec-1] osswutil.matcher.AndRequestMatcher: Попытка соответствовать использованием NegatedRequestMatcher [requestMatcher = MediaTypeRequestMatcher [contentNegotiationStrategy=org.springframework.web.accept.ContentNegotiationManager@3b8ad0c5, matchingMediaTypes = [Приложение/ json], useEquals = false, ignoredMediaTypes = [ / ]]] 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: httpRequestMediaTypes = [text / html, application / xhtml + xml, application / xml; q = 0,9, / ; q = 0,8] 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: обработка текста / html 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: application / json .isCompatibleWith text / html- false 201-0621 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: приложение обработки / xhtml + xml 2019-06-21 04: 47: 05.344 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: приложение / json .isCompatibleWith application / xht =false 2019-06-21 04: 47: 05.345 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestMatcher: Обработка приложения / xml; q = 0,9 2019-06-21 04: 47: 05.345 DEBUG 92124 ---[nio-8080-exec-1] osswumMediaTypeRequestMatcher: application / json .isCompatibleWith application / xml; q = 0,9 = false 2019-06-21 04: 47: 05.345 DEBUG 92124 --- [nio-8080-exec-1] osswumMediaTypeRequestM: Обработка / ; q = 0,8

Я пытался получить эту работу в течение 6 часов.Полностью истощенный.Дремлю и обновлю более подробную информацию.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...