mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 21:12:18 +00:00
Polish HttpSecurity Formatting
Issue gh-11360
This commit is contained in:
parent
400cd60368
commit
5dff157755
@ -945,10 +945,8 @@ public class AuthorizeHttpRequestsConfigurerTests {
|
|||||||
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
http
|
http
|
||||||
.httpBasic()
|
.httpBasic(withDefaults())
|
||||||
.and()
|
.rememberMe(withDefaults())
|
||||||
.rememberMe()
|
|
||||||
.and()
|
|
||||||
.authorizeHttpRequests((requests) -> requests
|
.authorizeHttpRequests((requests) -> requests
|
||||||
.anyRequest().fullyAuthenticated()
|
.anyRequest().fullyAuthenticated()
|
||||||
);
|
);
|
||||||
@ -970,10 +968,8 @@ public class AuthorizeHttpRequestsConfigurerTests {
|
|||||||
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
http
|
http
|
||||||
.httpBasic()
|
.httpBasic(withDefaults())
|
||||||
.and()
|
.rememberMe(withDefaults())
|
||||||
.rememberMe()
|
|
||||||
.and()
|
|
||||||
.authorizeHttpRequests((requests) -> requests
|
.authorizeHttpRequests((requests) -> requests
|
||||||
.anyRequest().rememberMe()
|
.anyRequest().rememberMe()
|
||||||
);
|
);
|
||||||
@ -995,8 +991,7 @@ public class AuthorizeHttpRequestsConfigurerTests {
|
|||||||
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
SecurityFilterChain chain(HttpSecurity http) throws Exception {
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
http
|
http
|
||||||
.httpBasic()
|
.httpBasic(withDefaults())
|
||||||
.and()
|
|
||||||
.authorizeHttpRequests((requests) -> requests
|
.authorizeHttpRequests((requests) -> requests
|
||||||
.anyRequest().anonymous()
|
.anyRequest().anonymous()
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user