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