@Override
            @CanIgnoreReturnValue
            public CasWebSecurityConfigurer<HttpSecurity> configure(final HttpSecurity http) throws Exception {
                http.authorizeHttpRequests(customizer -> customizer.requestMatchers(PathPatternRequestMatcher.withDefaults().matcher("/monitoring")).authenticated())
                    .httpBasic(customizer -> customizer.init(http));
                return this;
            }
This is {@link CasJavaMelodyAutoConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-javamelody/src/main/java/org/apereo/cas/config/CasJavaMelodyAutoConfiguration.java