-
Terminally Deprecated ElementsElementDescription
AntPathRequestMatcheris deprecated and marked for removal. This method is deprecated without direct replacement; usePathPatternRequestMatcherinstead.usehttp.with(new VaadinStatelessSecurityConfigurer(), customizer)instead.to be removed. There is no direct replacement for this method. Shared object setup must be done along with other required configurations by callingVaadinStatelessSecurityConfigurer.apply(HttpSecurity, Customizer).UseVaadinSecurityConfigurerinstead. It follows the Spring's SecurityConfigurer pattern and we recommend use it to configure Spring Security with Vaadin:
Read more details in Security Configurer documentation.@Configuration @EnableWebSecurity @Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class) public class SecurityConfig { @Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { return http.with(VaadinSecurityConfigurer.vaadin(), configurer -> {}).build(); } }AntPathRequestMatcher is deprecated and will be removed, useVaadinWebSecurity.pathMatchers(String...)instead.ViewAccessChecker is not used anymore by VaadinWebSecurity, and has been replaced byNavigationAccessControl. Calling this method will get a stub implementation that delegates to theNavigationAccessControlinstance.AntPathRequestMatcher is deprecated and will be removed, useVaadinWebSecurity.routePathMatchers(String...)instead.ViewAccessChecker has been replaced byNavigationAccessControl.No replacement plannedViewAccessChecker has been replaced byNavigationAccessControl.
-
Deprecated ClassesClassDescriptionUse
VaadinSecurityConfigurerinstead. It follows the Spring's SecurityConfigurer pattern and we recommend use it to configure Spring Security with Vaadin:
Read more details in Security Configurer documentation.@Configuration @EnableWebSecurity @Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class) public class SecurityConfig { @Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { return http.with(VaadinSecurityConfigurer.vaadin(), configurer -> {}).build(); } }ViewAccessChecker has been replaced byNavigationAccessControl.No replacement plannedViewAccessChecker has been replaced byNavigationAccessControl.
-
Deprecated MethodsMethodDescription
AntPathRequestMatcheris deprecated and marked for removal. This method is deprecated without direct replacement; usePathPatternRequestMatcherinstead.AntPathRequestMatcheris deprecated and marked for removal. This method is deprecated without direct replacement; usePathPatternRequestMatcherinstead.usehttp.with(new VaadinStatelessSecurityConfigurer(), customizer)instead.to be removed. There is no direct replacement for this method. Shared object setup must be done along with other required configurations by callingVaadinStatelessSecurityConfigurer.apply(HttpSecurity, Customizer).AntPathRequestMatcher is deprecated and will be removed, useVaadinWebSecurity.pathMatchers(String...)instead.ViewAccessChecker is not used anymore by VaadinWebSecurity, and has been replaced byNavigationAccessControl. Calling this method will get a stub implementation that delegates to theNavigationAccessControlinstance.AntPathRequestMatcher is deprecated and will be removed, useVaadinWebSecurity.routePathMatchers(String...)instead.
-
Deprecated ConstructorsConstructorDescription
AntPathRequestMatcheris deprecated and marked for removal. This method is deprecated without direct replacement; usePathPatternRequestMatcherinstead.