Я прикрепил фрагмент кода
Код: Выделить всё
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
http.authorizeRequests(authorization)-> authorization
.requestMatchers("/error").permitAll()
.requestMatchers(this.properties.getHttp().getAnonmousMatchers()).permitAll()
.requestMatchers("/execution-engine/**).hasAnyRole("W_EVTS_View")
.anyRequest().authenticated()
.httpBasic(AbstractHttpConfigurer::disable)
.csrf(ABstractHttpConfigurer::disable)
.oauth2ResourceServer(oauth2 -> oauth2.opaqueToken(Customizer.withDefaults()));
return http.build();
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... ringboot-3
Мобильная версия