OAuthClient.discoverProtectedResource

Discover the protected-resource metadata for an MCP endpoint, using the resource_metadata URL from a WWW-Authenticate header when present, else the RFC 9728 well-known URLs in order.

class OAuthClient
@safe
discoverProtectedResource
(,
string wwwAuthenticateHeader = ""
)