fix security configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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())
|
||||
// добавляем конвертер для извлечения ролей
|
||||
|
||||
Reference in New Issue
Block a user