Hi,
When setting up security for mappings with the following code:
http.authorizeHttpRequests((customizer) -> {
customizer.requestMatchers(HttpMethod.GET, "/api/v1/dicts/**").permitAll();
customizer.requestMatchers(HttpMethod.GET, "/api/v1/centers").permitAll();
customizer.requestMatchers("/api/v1/registration/**").permitAll();
customizer.requestMatchers("/api/v1/auth/**").permitAll();
customizer.requestMatchers("/swagger-ui/**").permitAll();
customizer.requestMatchers("/v3/api-docs/**").permitAll();
customizer.anyRequest().authenticated();
});
During application startup, the exception with message “Can’t configure requestMatchers after anyRequest” is thrown. This is because Jmix provides its own security configuration. Is there an alternative way for me to secure endpoints?