Skip to content

Commit c64d217

Browse files
committed
hofix: unactivate auth filter to related API
1 parent 22c04da commit c64d217

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

presentation/src/main/kotlin/com/dobby/api/config/WebSecurityConfig.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,20 @@ class WebSecurityConfig {
7171
securityManager: SecurityManager,
7272
handlerExceptionResolver: HandlerExceptionResolver
7373
): SecurityFilterChain = httpSecurity
74-
.securityMatcher("/v1/experiment-posts/{postId}/details")
74+
.securityMatcher(
75+
"/v1/experiment-posts/{postId}/details",
76+
"/v1/experiment-posts/{postId}/details/related"
77+
)
7578
.csrf { it.disable() }
7679
.cors(Customizer.withDefaults())
7780
.sessionManagement {
7881
it.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
7982
}
8083
.authorizeHttpRequests {
81-
it.requestMatchers("/v1/experiment-posts/{postId}/details").permitAll()
84+
it.requestMatchers(
85+
"/v1/experiment-posts/{postId}/details",
86+
"/v1/experiment-posts/{postId}/details/related"
87+
).permitAll()
8288
}
8389
.addFilterBefore(
8490
JwtOptionalAuthenticationFilter(securityManager, handlerExceptionResolver),

0 commit comments

Comments
 (0)