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
|
@Bean
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun filterChain(http: HttpSecurity): SecurityFilterChain? {
|
fun filterChain(http: HttpSecurity): SecurityFilterChain? {
|
||||||
http.authorizeHttpRequests { auth ->
|
http
|
||||||
|
// .authorizeHttpRequests { auth ->
|
||||||
auth.requestMatchers("/public/**", "/health", "/info").permitAll()
|
//
|
||||||
|
// auth.requestMatchers("/public/**", "/health", "/info").permitAll()
|
||||||
// auth.anyRequest().permitAll()
|
// auth.anyRequest().permitAll()
|
||||||
auth.anyRequest().authenticated()
|
// //auth.anyRequest().authenticated()
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
|
||||||
.oauth2ResourceServer { oauth2 ->
|
.oauth2ResourceServer { oauth2 ->
|
||||||
// oauth2!!.jwt(Customizer.withDefaults())
|
// oauth2!!.jwt(Customizer.withDefaults())
|
||||||
// добавляем конвертер для извлечения ролей
|
// добавляем конвертер для извлечения ролей
|
||||||
|
|||||||
Reference in New Issue
Block a user