Skip to content

Commit 808fbfa

Browse files
dbuosrwinch
authored andcommitted
Update webflux-form sample to use Built in CSRF Support
Remove the CsrfControllerAdvice class and update dependencies to add org.thymeleaf.extras:thymeleaf-extras-springsecurity5 Issue: gh-6061
1 parent d28e32b commit 808fbfa

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

samples/boot/webflux-form/spring-security-samples-boot-webflux-form.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ dependencies {
2222
compile project(':spring-security-web')
2323
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
2424
compile 'org.springframework.boot:spring-boot-starter-webflux'
25+
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
26+
2527

2628
testCompile project(':spring-security-test')
2729
testCompile 'org.springframework.boot:spring-boot-starter-test'

samples/boot/webflux-form/src/main/java/sample/CsrfControllerAdvice.java

-38
This file was deleted.

0 commit comments

Comments
 (0)