From ec2983b29f381283f84c9eeb1b5e32108564a193 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:31:37 -0500 Subject: [PATCH] Fix test for CannotAuthenticate when metadata is missing (#1266) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: halter73 <54385+halter73@users.noreply.github.com> --- tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs b/tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs index 265090e..9099e2b 100644 --- a/tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs +++ b/tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs @@ -542,7 +542,7 @@ public class AuthTests : OAuthTestBase var metadata = new ProtectedResourceMetadata { - AuthorizationServers = { new Uri(OAuthServerUrl) }, + AuthorizationServers = { OAuthServerUrl }, ScopesSupported = ["mcp:tools"], };