We use a custom authentication and authorisation library and for that to work I always used to set the AuthenticationProvider via the AuthenticationManagerBuilder like so:
protected void configure(AuthenticationManagerBuilder auth) {
auth.eraseCredentials(true).authenticationProvider(customAuthenticationProvider());
}```
However, now that I upgraded from Vaadin 14 to 23.3 this won't work anymore as I get a nondescript error once I navigate to the application. I therefore decided to use `VaadinWebSecurity` as explained here (https://vaadin.com/docs/latest/security/enabling-security/#spring-security-dependencies) to get it working. But when I extend `VaadinWebSecurity` I can't set the `AuthenticationProvider` as I did before because there is no `protected void configure(AuthenticationManagerBuilder auth)` to override in `VaadinWebSecurity`.
Does anyone know of a different way to set it? Thanks!
Basically, you just need to provide a suitable @Bean method that provides you the authentication manager or user details service, Spring Security can take it into use automatically