@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "casSwaggerEndpointConfigurer")
    public CasWebSecurityConfigurer<Void> casSwaggerEndpointConfigurer(
        final SwaggerUiConfigProperties swaggerUiConfigProperties,
        final SpringDocConfigProperties springDocConfigProperties) {
        return new CasWebSecurityConfigurer<>() {
            @Override
            public List<String> getIgnoredEndpoints() {
                val apiDocs = StringUtils.defaultIfBlank(springDocConfigProperties.getApiDocs().getPath(), "/v3/api-docs");
                return List.of(apiDocs, "/swagger-ui/", "/swagger-ui.html");
            }
        };
    }
This is {@link CasSwaggerAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-swagger/src/main/java/org/apereo/cas/config/CasSwaggerAutoConfiguration.java