Issue integrating with Azure AD

Đang mở
#454 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
aws, azure, java, spring-boot
Lĩnh vực
api, authentication, backend, cloud

Hướng nghiên cứu

Không có tệp repository hoặc test nào được nêu tên. Hãy bắt đầu bằng cách lần theo quá trình xử lý request của Lambda handler cùng với SecurityConfigDB và AADSecurityConfig, sau đó so sánh các log của Spring Security cho /auth/v1/healthCheck; được xem là hoàn tất khi endpoint trả về 200 mà không gặp timeout hoặc lỗi ủy quyền đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

need feedback

To help us debug your issue fill in the basic information below using the options provided

Serverless Java Container version: 1.6

Implementations: Spring Boot 2

Framework version: SpringBoot 2.6.3.RELEASE

Frontend service: REST API

Deployment method: Deployed on Lambda exposed using API Gateway (REST API)

Scenario

After integrating the lambda handler with my application , it works fine but when i try to add one more security configuration for Azure AD using AADResourceServerWebSecurityConfigurerAdapter from library azure-spring-boot-starter-active-directory , I get the following error:
Null Pointer Exception - when no content ttype is set or
pathPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'GET /login - when content type is set

Expected behavior

200

Actual behavior

504-Gateway timeout with error as listed above

Steps to reproduce

@Configuration
@Order(1)
public class SecurityConfigDB extends WebSecurityConfigurerAdapter {
	
	@Override
    protected void configure(HttpSecurity http) throws Exception {
		
		http.cors().configurationSource(corsConfigurationSource());
		http.csrf().disable();
				
        http.antMatcher("/api/**").csrf().disable()
                .exceptionHandling()
                	.authenticationEntryPoint(authenticationEntryPoint)
                	.accessDeniedHandler(accessDeniedHandler)
                .and()
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .authorizeRequests()
                .antMatchers(AUTH_WHITELIST).permitAll()
                .anyRequest()
                .authenticated()
                 ;       
                
        http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
    }
	
	@Override
    protected void configure(AuthenticationManagerBuilder auth) throws Exception {

        auth.authenticationProvider(dbAuthenticationProvider);
        
    }
	
	@Override
    @Bean
    public AuthenticationManager authenticationManagerBean() throws Exception {
        return super.authenticationManagerBean();
    }
}


@Configuration
@Order(2)
public class AADSecurityConfig extends AADResourceServerWebSecurityConfigurerAdapter {
	
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        super.configure(http);
        http.cors().configurationSource(corsConfigurationSource());
        
        http
        .authorizeRequests()
        .antMatchers(AUTH_WHITELIST).permitAll().and()
        .antMatcher("/oauth/**")
        .authorizeRequests((requests) -> requests.anyRequest().authenticated())
        .csrf().disable()
        .exceptionHandling()
        	.authenticationEntryPoint(authenticationEntryPoint)
        	.accessDeniedHandler(accessDeniedHandler)
        .and()
        .sessionManagement()
        .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
    
        ;   
    }
  
}

Full log output

2022-03-30 08:22:22.911 INFO --- [ main] c.a.s.p.internal.LambdaContainerHandler : Starting Lambda Container Handler
2022-03-30 08:22:23.202 INFO --- [ main] c.a.s.proxy.AsyncInitializationWrapper : Async initialization will wait for 8290ms
2022-03-30 08:22:23.203 INFO --- [ Thread-0] c.a.s.proxy.AsyncInitializationWrapper : Starting async initializer
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.6.3)
2022-03-30 08:22:29.647 INFO 9 --- [ Thread-0] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2022-03-30 08:22:29.744 INFO 9 --- [ Thread-0] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.4.Final
2022-03-30 08:22:30.067 INFO 9 --- [ Thread-0] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
START RequestId: 356e429e-cecf-4ccf-a3a8-1ecdd819a941 Version: $LATEST
2022-03-30 08:22:30.243 INFO 9 --- [ Thread-0] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2022-03-30 08:22:30.591 INFO 9 --- [ Thread-0] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2022-03-30 08:22:30.612 INFO 9 --- [ Thread-0] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2022-03-30 08:22:31.493 INFO 9 --- [ main] c.a.s.proxy.AsyncInitializationWrapper : Initialization took longer than 10000, setting new CountDownLatch and continuing in event handler
2022-03-30 08:22:32.521 INFO 9 --- [ Thread-0] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-03-30 08:22:44.813 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/v2/api-docs']
2022-03-30 08:22:44.848 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/swagger-resources']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/swagger-resources/']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/configuration/ui']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/configuration/security']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/swagger-ui.html']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/webjars/
']
2022-03-30 08:22:44.849 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/v3/api-docs/']
2022-03-30 08:22:44.850 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/swagger-ui/
']
2022-03-30 08:22:44.850 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/oauth']
2022-03-30 08:22:44.850 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/oauth/']
2022-03-30 08:22:44.850 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [permitAll] for Ant [pattern='/auth/v1/
']
2022-03-30 08:22:44.850 DEBUG 9 --- [ Thread-0] edFilterInvocationSecurityMetadataSource : Adding web access control expression [authenticated] for any request
2022-03-30 08:22:44.947 INFO 9 --- [ Thread-0] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/oauth/**'] with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@71959ece, org.springframework.security.web.context.SecurityContextPersistenceFilter@189ad29e, org.springframework.security.web.header.HeaderWriterFilter@3a3b8008, org.springframework.web.filter.CorsFilter@74d2643e, org.springframework.security.web.authentication.logout.LogoutFilter@fa7b4f4, org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter@cdddbf, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6270c0ca, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@6f6f5431, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5f26801c, org.springframework.security.web.session.SessionManagementFilter@39013c12, org.springframework.security.web.access.ExceptionTranslationFilter@3e3a59bb, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2412c67e]
2022-03-30 08:22:50.755 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/login', method=POST}
2022-03-30 08:22:50.757 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'POST /login'
2022-03-30 08:22:50.757 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:22:50.758 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/login', method=GET}
2022-03-30 08:22:50.758 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'GET /login'
2022-03-30 08:22:50.767 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:22:50.768 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/logout', method=GET}
2022-03-30 08:22:50.769 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'GET /logout'
2022-03-30 08:22:50.769 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:22:50.907 DEBUG 9 --- [ parallel-1] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/logout', method=POST}
2022-03-30 08:22:50.907 DEBUG 9 --- [ parallel-1] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'POST /logout'
2022-03-30 08:22:50.907 DEBUG 9 --- [ parallel-1] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:22:50.914 DEBUG 9 --- [ parallel-1] a.DelegatingReactiveAuthorizationManager : Checking authorization on '/auth/v1/healthCheck' using org.springframework.security.authorization.AuthenticatedReactiveAuthorizationManager@18d1b8a2
2022-03-30 08:22:50.917 DEBUG 9 --- [ parallel-1] ebSessionServerSecurityContextRepository : No SecurityContext found in WebSession: 'org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession@6ab17b89'
2022-03-30 08:22:50.918 DEBUG 9 --- [ parallel-1] o.s.s.w.s.a.AuthorizationWebFilter : Authorization failed: Access Denied
2022-03-30 08:22:50.992 DEBUG 9 --- [ parallel-1] ebSessionServerSecurityContextRepository : No SecurityContext found in WebSession: 'org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession@6ab17b89'
2022-03-30 08:22:50.993 DEBUG 9 --- [ parallel-1] DelegatingServerAuthenticationEntryPoint : Trying to match using MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[/]]
2022-03-30 08:22:50.993 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:22:50.994 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:22:50.994 DEBUG 9 --- [ parallel-1] DelegatingServerAuthenticationEntryPoint : Trying to match using OrServerWebExchangeMatcher{matchers=[org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021, AndServerWebExchangeMatcher{matchers=[NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}, MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]]}]}
2022-03-30 08:22:50.995 DEBUG 9 --- [ parallel-1] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021
2022-03-30 08:22:50.996 DEBUG 9 --- [ parallel-1] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using AndServerWebExchangeMatcher{matchers=[NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}, MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]]}
2022-03-30 08:22:51.007 DEBUG 9 --- [ parallel-1] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Trying to match using NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}
2022-03-30 08:22:51.008 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:22:51.008 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:22:51.009 DEBUG 9 --- [ parallel-1] .w.s.u.m.NegatedServerWebExchangeMatcher : matches = true
2022-03-30 08:22:51.009 DEBUG 9 --- [ parallel-1] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Trying to match using MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Did not match
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] DelegatingServerAuthenticationEntryPoint : No match found. Using default entry point org.springframework.security.web.server.DelegatingServerAuthenticationEntryPoint@273bf697
2022-03-30 08:22:51.010 DEBUG 9 --- [ parallel-1] DelegatingServerAuthenticationEntryPoint : Trying to match using org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021
2022-03-30 08:22:51.011 DEBUG 9 --- [ parallel-1] DelegatingServerAuthenticationEntryPoint : No match found. Using default entry point org.springframework.security.web.server.authentication.HttpBasicServerAuthenticationEntryPoint@3ac69616
2022-03-30 08:22:51.050 INFO 9 --- [ main] c.a.s.p.internal.LambdaContainerHandler : test-invoke-source-ip arn:aws:sts::#########:assumed-role/#########arn:aws:sts::#########:assumed-role/######### arn:aws:sts::#########:assumed-role/######### [30/03/2022:08:22:21Z] "GET /auth/v1/healthCheck HTTP/1.1" 401 - "####" "aws-internal/3 aws-sdk-java/1.12.162 Linux/5.4.176-103.347.amzn2int.x86_64 OpenJDK_64-Bit_Server_VM/25.322-b06 java/1.8.0_322 vendor/Oracle_Corporation cfg/retry-mode/standard" combined
END RequestId: 356e429e-cecf-4ccf-a3a8-1ecdd819a941
REPORT RequestId: 356e429e-cecf-4ccf-a3a8-1ecdd819a941 Duration: 19565.99 ms Billed Duration: 19566 ms Memory Size: 1024 MB Max Memory Used: 354 MB Init Duration: 9923.44 ms

With Content-Type Error:
START RequestId: 7936b777-82e6-4a54-bda8-04f4a36f52db Version: $LATEST
2022-03-30 08:24:03.587 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/login', method=POST}
2022-03-30 08:24:03.587 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'POST /login'
2022-03-30 08:24:03.588 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:24:03.588 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/login', method=GET}
2022-03-30 08:24:03.588 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'GET /login'
2022-03-30 08:24:03.588 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:24:03.588 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/logout', method=GET}
2022-03-30 08:24:03.589 DEBUG 9 --- [ main] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'GET /logout'
2022-03-30 08:24:03.589 DEBUG 9 --- [ main] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:24:03.590 DEBUG 9 --- [ parallel-2] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using PathMatcherServerWebExchangeMatcher{pattern='/logout', method=POST}
2022-03-30 08:24:03.590 DEBUG 9 --- [ parallel-2] athPatternParserServerWebExchangeMatcher : Request 'GET /auth/v1/healthCheck' doesn't match 'POST /logout'
2022-03-30 08:24:03.590 DEBUG 9 --- [ parallel-2] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:24:03.591 DEBUG 9 --- [ parallel-2] a.DelegatingReactiveAuthorizationManager : Checking authorization on '/auth/v1/healthCheck' using org.springframework.security.authorization.AuthenticatedReactiveAuthorizationManager@18d1b8a2
2022-03-30 08:24:03.591 DEBUG 9 --- [ parallel-2] ebSessionServerSecurityContextRepository : No SecurityContext found in WebSession: 'org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession@69bb3445'
2022-03-30 08:24:03.591 DEBUG 9 --- [ parallel-2] o.s.s.w.s.a.AuthorizationWebFilter : Authorization failed: Access Denied
2022-03-30 08:24:03.592 DEBUG 9 --- [ parallel-2] ebSessionServerSecurityContextRepository : No SecurityContext found in WebSession: 'org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession@69bb3445'
2022-03-30 08:24:03.592 DEBUG 9 --- [ parallel-2] DelegatingServerAuthenticationEntryPoint : Trying to match using MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[/]]
2022-03-30 08:24:03.592 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:24:03.592 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:24:03.592 DEBUG 9 --- [ parallel-2] DelegatingServerAuthenticationEntryPoint : Trying to match using OrServerWebExchangeMatcher{matchers=[org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021, AndServerWebExchangeMatcher{matchers=[NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}, MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]]}]}
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : Trying to match using AndServerWebExchangeMatcher{matchers=[NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}, MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]]}
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Trying to match using NegatedServerWebExchangeMatcher{matcher=MediaTypeRequestMatcher [matchingMediaTypes=[text/html], useEquals=false, ignoredMediaTypes=[]]}
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:24:03.593 DEBUG 9 --- [ parallel-2] .w.s.u.m.NegatedServerWebExchangeMatcher : matches = true
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Trying to match using MediaTypeRequestMatcher [matchingMediaTypes=[application/atom+xml, application/x-www-form-urlencoded, application/json, application/octet-stream, application/xml, multipart/form-data, text/xml], useEquals=false, ignoredMediaTypes=[/]]
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : httpRequestMediaTypes=[]
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] .s.u.m.MediaTypeServerWebExchangeMatcher : Did not match any media types
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] .s.s.w.s.u.m.AndServerWebExchangeMatcher : Did not match
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] o.s.s.w.s.u.m.OrServerWebExchangeMatcher : No matches found
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] DelegatingServerAuthenticationEntryPoint : No match found. Using default entry point org.springframework.security.web.server.DelegatingServerAuthenticationEntryPoint@273bf697
2022-03-30 08:24:03.594 DEBUG 9 --- [ parallel-2] DelegatingServerAuthenticationEntryPoint : Trying to match using org.springframework.security.config.web.server.ServerHttpSecurity$HttpBasicSpec$$Lambda$981/717428152@74bb7021
2022-03-30 08:24:03.595 DEBUG 9 --- [ parallel-2] DelegatingServerAuthenticationEntryPoint : No match found. Using default entry point org.springframework.security.web.server.authentication.HttpBasicServerAuthenticationEntryPoint@3ac69616
2022-03-30 08:24:03.608 INFO 9 --- [ main] c.a.s.p.internal.LambdaContainerHandler : test-invoke-source-ip arn:aws:sts::#########:assumed-role/#########arn:aws:sts::#########:assumed-role/######### arn:aws:sts::#########:assumed-role/######### [30/03/2022:08:24:03Z] "GET /auth/v1/healthCheck HTTP/1.1" 401 - "#########:#########" "aws-internal/3 aws-sdk-java/1.12.162 Linux/5.4.176-103.347.amzn2int.x86_64 OpenJDK_64-Bit_Server_VM/25.322-b06 java/1.8.0_322 vendor/Oracle_Corporation cfg/retry-mode/standard" combined
END RequestId: 7936b777-82e6-4a54-bda8-04f4a36f52db

Much Appreciated if resolved soon.
Thankyou

Ngôn ngữ chính
Java
Star
1.6k
Fork
575
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/serverless-java-container

Tất cả issue của aws/serverless-java-container

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.