pub async fn oauth_protected_resource(
http_client: &Client,
pds: &str,
) -> Result<OAuthProtectedResource, OAuthClientError>
Expand description
Fetches and validates protected resource metadata from a PDS’s well-known endpoint.
Retrieves OAuth 2.0 protected resource configuration from /.well-known/oauth-protected-resource
and validates that the resource URI matches the PDS URL and has exactly one authorization server
as required by AT Protocol specification.