-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VaadinWebSecurity is broken with Hilla 2 #681
Comments
The issue seems to be vaadin/flow#14923 |
Looks like some other problem as |
Alright. Thank you |
Any news on that? I'm working on a Hilla talk and it would be great to show Hilla 2 with Spring Boot 3 |
I think that the problem comes from vaadin/flow#14853: if I do the same change on 23.3 and try to use it with Hilla 1.3, integration tests pass, but applications can no longer log in. The code removed in that PR cannot be restored because it no longer works ( |
Where in the code can you see the problem when debugging? Or in other words, what is not available at which point? |
I was wrong. The issue is not there. It's this response header: |
That header is set in the authentication request, and only in that case. Otherwise, the But with Hilla 2, other requests are seen as authentication ones, even some completely unrelated like There are also some I still haven't been able to understand what causes this behavior. Anyway, the wrong path passes by this: https://github.com/spring-projects/spring-security/blob/19c55372a3f2f97d1f0ee235f90b38187a8b3a69/web/src/main/java/org/springframework/security/web/session/SessionManagementFilter.java#L97-L102 Only the first |
…on (#15804) The shared objects need to be available when other configurers are run and because of spring-projects/spring-security#12579 a workaround is needed to actually apply the correct SecurityContextRepository Fixes vaadin/hilla#681
This ticket/PR has been released with Vaadin 24.0.0.alpha10 and is also targeting the upcoming stable 24.0.0 version. |
I have a simple Hilla application created on https://start.vaadin.com with VaadinWebSecurity configured.
Login redirect to the login view and navigating to / results in a 401:
The text was updated successfully, but these errors were encountered: