namespace ObsidianMcp.Config; /// /// /.well-known/oauth-authorization-server + /.well-known/oauth-protected-resource /// 端点返回的元数据。环境变量前缀 Mcp__OAuthDiscovery__。 /// public class McpDiscoveryOptions { public const string Section = "Mcp:OAuthDiscovery"; public string Issuer { get; set; } = string.Empty; public string AuthorizationEndpoint { get; set; } = string.Empty; public string TokenEndpoint { get; set; } = string.Empty; public string RegistrationEndpoint { get; set; } = string.Empty; /// /// 本资源服务的标识符(RFC 9728 PRM 的 `resource` 字段,必须与 auth server /// 上该资源条目的 resource_url 完全一致)。 /// 留空时 PRM 端点回退用请求的 `scheme://host`。 /// public string ResourceUrl { get; set; } = string.Empty; }