Vaadin 24.3.7 Spring Boot (Version 3.2.4) / Security Remember-Me Authentication

51 views Asked by At

Good day, Who of you has ever developed Remember-Me Authentication with Vaadin (version 24.3.x) and Spring Boot (version 3.2.4)?

I'm currently using the Vaadin login and a user database.

@EnableWebSecurity
@Configuration

public class SecurityConfiguration extends VaadinWebSecurity {

@Bean
public PasswordEncoder passwordEncoder() {
    return new BCryptPasswordEncoder();
}


@Override
protected void configure(HttpSecurity http) throws Exception {
    http.authorizeHttpRequests(
            authorize -> authorize.requestMatchers(new AntPathRequestMatcher("/images/*.png")).permitAll());

    // Icons from the line-awesome addon
    http.authorizeHttpRequests(authorize -> authorize
            .requestMatchers(new AntPathRequestMatcher("/line-awesome/**/*.svg")).permitAll());

    super.configure(http);
    setLoginView(http, LoginView.class);
}

The old rememberMe() is deprecated.

0

There are 0 answers