Skip to content
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

Support XorCsrfTokenRequestAttributeHandler #14923

Closed
Artur- opened this issue Oct 26, 2022 · 4 comments · Fixed by #16521
Closed

Support XorCsrfTokenRequestAttributeHandler #14923

Artur- opened this issue Oct 26, 2022 · 4 comments · Fixed by #16521

Comments

@Artur-
Copy link
Member

Artur- commented Oct 26, 2022

Describe your motivation

Spring Security 6 switched to use XorCsrfTokenRequestAttributeHandler for the CSRF token by default in spring-projects/spring-security#11960. This is not supported by Hilla endpoints right now. The login handler returns the CsrfTokenRequestAttributeHandler token instead and the next endpoint request then fails.

Describe the solution you'd like

Endpoints and Hilla should work with both CsrfTokenRequestAttributeHandler and XorCsrfTokenRequestAttributeHandler

@simasch
Copy link

simasch commented Dec 1, 2022

When will this be fixed as it blocks migrating Hilla apps to Spring Boot 3?

@Artur-
Copy link
Member Author

Artur- commented Dec 1, 2022

Hilla uses the old style csrf token so this should not block anything unless there is a bug

@simasch
Copy link

simasch commented Dec 1, 2022

@Artur- So this is not the cause for: vaadin/hilla#681

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.1.0.alpha3 and is also targeting the upcoming stable 24.1.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants