Polish LogoutBuilder

Issue gh-4603
This commit is contained in:
Rob Winch
2017-10-06 16:31:29 -05:00
parent 79e749790f
commit 370fc48afe
4 changed files with 44 additions and 11 deletions

View File

@@ -55,6 +55,7 @@ public class FormLoginTests {
.anyExchange().authenticated()
.and()
.formLogin().and()
.logout().and()
.build();
WebTestClient webTestClient = WebTestClientBuilder

View File

@@ -47,6 +47,7 @@ public class LogoutBuilderTests {
.anyExchange().authenticated()
.and()
.formLogin().and()
.logout().and()
.build();
WebTestClient webTestClient = WebTestClientBuilder
@@ -85,10 +86,12 @@ public class LogoutBuilderTests {
SecurityWebFilterChain securityWebFilter = this.http
.authenticationManager(this.manager)
.authorizeExchange()
.anyExchange().authenticated()
.and()
.anyExchange().authenticated()
.and()
.formLogin().and()
.logout().logoutUrl("/custom-logout").and()
.logout()
.logoutUrl("/custom-logout")
.and()
.build();
WebTestClient webTestClient = WebTestClientBuilder