I just had a hard time finding out that the way how VaadinAwareSecurityContextHolderStrategy bean is configured has changed from Vaadin 24 to 25.
Before, this happened in VaadinAwareSecurityContextHolderStrategyConfiguration (annotated with @Component), but now we have SpringSecurityAutoConfiguration (annotated with @AutoConfiguration).
This leads to a different order in which beans are created and since in this case the SecurityContextHolderStrategy is set to static SecurityContextHolder.strategy, it leads to a different behaviour e. g. in filters defined in SecurityFilterChains.
I searched the documentation, but couldn’t find any hint on this change. Would’ve been nice to add this to How to upgrade Vaadin applications.
I’d consider myself a normal person. I created my SecurityFilterChain according to Vaadin docs, and after upgrading from 24 to 25 it didn’t work anymore, so I don’t share your feeling that his is just an internal issue.