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

fix: store spring csrf to bootstrap page #10577

Merged
merged 19 commits into from
Apr 9, 2021

Conversation

haijian-vaadin
Copy link
Contributor

@haijian-vaadin haijian-vaadin commented Apr 7, 2021

Stores spring CSRF token into meta tags into the bootstrap page, which is used for login() and logout() helpers. It has the benefit that login and logout are now Spring CSRF protected, we no longer need to ingore Spring CSRF protection for login like http.csrf().ignoringAntMatchers("/login");

@haijian-vaadin haijian-vaadin added the hilla Issues related to Hilla label Apr 8, 2021
@haijian-vaadin haijian-vaadin marked this pull request as ready for review April 8, 2021 07:40
@haijian-vaadin haijian-vaadin force-pushed the haijian/store-spring-csrf-to-bootstrap-page branch from f71a0a3 to b864780 Compare April 8, 2021 18:53
fluorumlabs
fluorumlabs previously approved these changes Apr 8, 2021
@haijian-vaadin haijian-vaadin merged commit 6bd42f6 into master Apr 9, 2021
@haijian-vaadin haijian-vaadin deleted the haijian/store-spring-csrf-to-bootstrap-page branch April 9, 2021 07:32
haijian-vaadin added a commit that referenced this pull request Apr 9, 2021
Stores spring CSRF token into meta tags into the bootstrap page, which is used for `login()` and `logout()` helpers. It has the benefit that login and logout are now Spring CSRF protected, we no longer need to ingore Spring CSRF protection for login like `http.csrf().ignoringAntMatchers("/login");`
@haijian-vaadin haijian-vaadin mentioned this pull request Apr 9, 2021
haijian-vaadin added a commit that referenced this pull request Apr 9, 2021
Stores spring CSRF token into meta tags into the bootstrap page, which is used for `login()` and `logout()` helpers. It has the benefit that login and logout are now Spring CSRF protected, we no longer need to ingore Spring CSRF protection for login like `http.csrf().ignoringAntMatchers("/login");`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants