@ -179,7 +179,7 @@ class ManagementWebSecurityAutoConfigurationTests {
@Override
@Override
protected void configure ( HttpSecurity http ) throws Exception {
protected void configure ( HttpSecurity http ) throws Exception {
http . authorize Requests( ( requests ) - > {
http . authorize Http Requests( ( requests ) - > {
requests . antMatchers ( "/foo" ) . permitAll ( ) ;
requests . antMatchers ( "/foo" ) . permitAll ( ) ;
requests . anyRequest ( ) . authenticated ( ) ;
requests . anyRequest ( ) . authenticated ( ) ;
} ) ;
} ) ;
@ -194,7 +194,7 @@ class ManagementWebSecurityAutoConfigurationTests {
@Bean
@Bean
SecurityFilterChain testSecurityFilterChain ( HttpSecurity http ) throws Exception {
SecurityFilterChain testSecurityFilterChain ( HttpSecurity http ) throws Exception {
return http . antMatcher ( "/**" ) . authorize Requests( ( authorize ) - > authorize . anyRequest ( ) . authenticated ( ) )
return http . antMatcher ( "/**" ) . authorize Http Requests( ( authorize ) - > authorize . anyRequest ( ) . authenticated ( ) )
. build ( ) ;
. build ( ) ;
}
}
@ -206,8 +206,8 @@ class ManagementWebSecurityAutoConfigurationTests {
@Bean
@Bean
@Order ( SecurityProperties . BASIC_AUTH_ORDER - 1 )
@Order ( SecurityProperties . BASIC_AUTH_ORDER - 1 )
SecurityFilterChain testRemoteDevToolsSecurityFilterChain ( HttpSecurity http ) throws Exception {
SecurityFilterChain testRemoteDevToolsSecurityFilterChain ( HttpSecurity http ) throws Exception {
return http . requestMatcher ( new AntPathRequestMatcher ( "/**" ) ) . authorize Requests( ) . anyRequest ( ) . anonymous ( )
return http . requestMatcher ( new AntPathRequestMatcher ( "/**" ) ) . authorize Http Requests( ) . anyRequest ( )
. an d( ) . csrf ( ) . disable ( ) . build ( ) ;
. an onymous( ) . an d( ) . csrf ( ) . disable ( ) . build ( ) ;
}
}
}
}