Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,29 @@
* }
* </code>
* </pre>
*
* @deprecated Use {@link VaadinSecurityConfigurer} instead. It follows the
* Spring's SecurityConfigurer pattern and we recommend use it to
* configure Spring Security with Vaadin:
Comment on lines +103 to +105
Copy link
Contributor

@vursen vursen Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deprecation notice should state the version in which this class will be removed. Otherwise, it's not immediately clear.

*
* <pre>
* <code>&#64;Configuration
* &#64;EnableWebSecurity
* &#64;Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class)
* public class SecurityConfig {
* &#64;Bean
* SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
* return http.with(VaadinSecurityConfigurer.vaadin(), configurer -> {}).build();
* }
* }
* </code>
* </pre>
*
* Read more details in <a href=
* "https://vaadin.com/docs/latest/flow/security/vaadin-security-configurer">Security
* Configurer documentation.</a>
*/
@Deprecated(since = "24.9", forRemoval = true)
@Import(VaadinAwareSecurityContextHolderStrategyConfiguration.class)
public abstract class VaadinWebSecurity {

Expand Down
Loading