File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2525import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
2626import org .springframework .boot .autoconfigure .condition .ConditionalOnWebApplication ;
2727import org .springframework .boot .autoconfigure .security .ConditionalOnDefaultWebSecurity ;
28+ import org .springframework .boot .autoconfigure .security .SecurityProperties ;
2829import org .springframework .boot .autoconfigure .security .oauth2 .client .servlet .OAuth2ClientAutoConfiguration ;
2930import org .springframework .boot .autoconfigure .security .oauth2 .resource .servlet .OAuth2ResourceServerAutoConfiguration ;
3031import org .springframework .boot .autoconfigure .security .saml2 .Saml2RelyingPartyAutoConfiguration ;
3132import org .springframework .boot .autoconfigure .security .servlet .SecurityAutoConfiguration ;
3233import org .springframework .context .annotation .Bean ;
3334import org .springframework .context .annotation .Configuration ;
35+ import org .springframework .core .annotation .Order ;
3436import org .springframework .security .config .Customizer ;
3537import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
3638import org .springframework .security .web .SecurityFilterChain ;
5557public class ManagementWebSecurityAutoConfiguration {
5658
5759 @ Bean
60+ @ Order (SecurityProperties .BASIC_AUTH_ORDER )
5861 SecurityFilterChain managementSecurityFilterChain (HttpSecurity http ) throws Exception {
5962 http .authorizeRequests ((requests ) -> {
6063 requests .requestMatchers (EndpointRequest .to (HealthEndpoint .class )).permitAll ();
You can’t perform that action at this time.
0 commit comments