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 99
99
* }
100
100
* </code>
101
101
* </pre>
102
+ *
103
+ * @deprecated Use {@link VaadinSecurityConfigurer} instead. It follows the
104
+ * Spring's SecurityConfigurer pattern and we recommend use it to
105
+ * configure Spring Security with Vaadin:
106
+ *
107
+ * <pre>
108
+ * <code>@Configuration
109
+ * @EnableWebSecurity
110
+ * @Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class)
111
+ * public class SecurityConfig {
112
+ * @Bean
113
+ * SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
114
+ * return http.with(VaadinSecurityConfigurer.vaadin(), configurer -> {}).build();
115
+ * }
116
+ * }
117
+ * </code>
118
+ * </pre>
119
+ *
120
+ * Read more details in <a href=
121
+ * "https://vaadin.com/docs/latest/flow/security/vaadin-security-configurer">Security
122
+ * Configurer documentation.</a>
102
123
*/
124
+ @ Deprecated (since = "24.9" , forRemoval = true )
103
125
@ Import (VaadinAwareSecurityContextHolderStrategyConfiguration .class )
104
126
public abstract class VaadinWebSecurity {
105
127
You can’t perform that action at this time.
0 commit comments