See #33647

Comment From: tvahrst

Hi, I mentioned this already in #33647: it's possible to create EndpointRequestMatcher by providing the corresponding endpoint class. For example:

    return http -> http
        .authorizeRequests()
        .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).permitAll()
        .requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("MANAGEMENT");

This would lead in a toString output printing the full qualified classnames. I would suggest: 1. map the content of include and exclude to EndpointIds: includes.stream().map(this::getEndpointId).collect(Collectors.toList())); // spring 6: toList() 2. an empty includes list means 'include all' (see EndpointReqeust.toAnyEndpoint()) . Maybe the toString method should print a wildcard like include=[*] when include is empty?

please compare @devrishal's pr: https://github.com/spring-projects/spring-boot/pull/33664

Comment From: wilkinsona

@adavid9 As you've closed this PR, am I right to assume that you are no longer interested in making this contribution?