@GetMapping(value = '/' + OidcConstants.BASE_OIDC_URL + '/' + OidcConstants.WELL_KNOWN_URL + "/webfinger",
        produces = "application/jrd+json")
    @Operation(summary = "Handle webfinger discovery request")
    public ResponseEntity<Map> getWebFingerResponse(
        @RequestParam("resource")
        final String resource,
        @RequestParam(value = "rel", required = false)
        final String rel) throws Throwable {
        return BeanSupplier.isNotProxy(webFingerDiscoveryService)
            ? webFingerDiscoveryService.handleRequest(resource, rel)
            : ResponseEntity.notFound().build();
    }
/" + 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