fix security configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dmitriy.churmeev
2026-03-29 15:34:19 +03:00
parent 6c52ec56cc
commit 3eeb91dee4

View File

@@ -26,13 +26,14 @@ class WebSecurityConfig () {
@Bean
@Throws(Exception::class)
fun filterChain(http: HttpSecurity): SecurityFilterChain? {
http.authorizeHttpRequests { auth ->
auth.requestMatchers("/public/**", "/health", "/info").permitAll()
http
// .authorizeHttpRequests { auth ->
//
// auth.requestMatchers("/public/**", "/health", "/info").permitAll()
// auth.anyRequest().permitAll()
auth.anyRequest().authenticated()
// //auth.anyRequest().authenticated()
// }
}
.oauth2ResourceServer { oauth2 ->
// oauth2!!.jwt(Customizer.withDefaults())
// добавляем конвертер для извлечения ролей