mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-24 11:13:30 +00:00
Polish HttpSecurity Formatting
Issue gh-11360
This commit is contained in:
parent
c4b0e9bd74
commit
d27322c9e0
@ -944,13 +944,11 @@ 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()
|
.authorizeHttpRequests((requests) -> requests
|
||||||
.and()
|
.anyRequest().fullyAuthenticated()
|
||||||
.authorizeHttpRequests((requests) -> requests
|
);
|
||||||
.anyRequest().fullyAuthenticated()
|
|
||||||
);
|
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
return http.build();
|
return http.build();
|
||||||
}
|
}
|
||||||
@ -969,13 +967,11 @@ 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()
|
.authorizeHttpRequests((requests) -> requests
|
||||||
.and()
|
.anyRequest().rememberMe()
|
||||||
.authorizeHttpRequests((requests) -> requests
|
);
|
||||||
.anyRequest().rememberMe()
|
|
||||||
);
|
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
return http.build();
|
return http.build();
|
||||||
}
|
}
|
||||||
@ -994,11 +990,10 @@ 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()
|
);
|
||||||
);
|
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
return http.build();
|
return http.build();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user