private ResponseEntity<OidcServerDiscoverySettings> getOidcServerDiscoveryResponse(final HttpServletRequest request,
                                                                                       final HttpServletResponse response,
                                                                                       final List<String> endpoints) {
        if (isIssuerValidForEndpoint(request, response, endpoints) && BeanSupplier.isNotProxy(webFingerDiscoveryService)) {
            val discovery = webFingerDiscoveryService.getDiscovery();
            return new ResponseEntity<>(discovery, HttpStatus.OK);
        }
        LOGGER.warn("Unable to accept request; issuer for endpoint(s) [{}] is invalid", endpoints);
        return new ResponseEntity<>(HttpStatus.NOT_FOUND);
    }
/" + OidcConstants.WELL_KNOWN_OPENID_CONFIGURATION_URL}, produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Handle OIDC discovery request",
        description = "Handles requests for well-known OIDC discovery configuration")
    public ResponseEntity<OidcServerDiscoverySettings> getWellKnownOpenIdDiscoveryConfiguration(final HttpServletRequest request,
                                                                                                final HttpServletResponse response) {
        return getOidcServerDiscoveryResponse(request, response, List.of(OidcConstants.WELL_KNOWN_OPENID_CONFIGURATION_URL));
    }

    /**
Gets web finger response.

@param resource the resource
@param rel      the rel
@return the web finger response
@throws Throwable the throwable
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/discovery/OidcWellKnownEndpointController.java