File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
vaadin-spring/src/main/java/com/vaadin/flow/spring/security Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 101101 * }
102102 * </code>
103103 * </pre>
104+ *
105+ * @deprecated Use {@link VaadinSecurityConfigurer} instead. It follows the
106+ * Spring's SecurityConfigurer pattern and we recommend use it to
107+ * configure Spring Security with Vaadin:
108+ *
109+ * <pre>
110+ * <code>@Configuration
111+ * @EnableWebSecurity
112+ * @Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class)
113+ * public class SecurityConfig {
114+ * @Bean
115+ * SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
116+ * return http.with(VaadinSecurityConfigurer.vaadin(), configurer -> {}).build();
117+ * }
118+ * }
119+ * </code>
120+ * </pre>
121+ *
122+ * Read more details in <a href=
123+ * "https://vaadin.com/docs/latest/flow/security/vaadin-security-configurer">Security
124+ * Configurer documentation.</a>
104125 */
126+ @ Deprecated (since = "24.9" , forRemoval = true )
105127@ Import (VaadinAwareSecurityContextHolderStrategyConfiguration .class )
106128public abstract class VaadinWebSecurity {
107129
You can’t perform that action at this time.
0 commit comments