Change ProtectedResourceMetadata URI properties to strings and build resource strings directly (#1264)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: halter73 <54385+halter73@users.noreply.github.com> Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
parent
b4c7ded398
commit
dbf91bcb1a
1 changed files with 209 additions and 55 deletions
|
|
@ -16,10 +16,11 @@ public sealed class Program
|
|||
private static readonly string _clientMetadataDocumentUrl = $"{_url}/client-metadata/cimd-client.json";
|
||||
|
||||
// Port 5000 is used by tests and port 7071 is used by the ProtectedMcpServer sample
|
||||
private static readonly string[] ValidResources = [
|
||||
"http://localhost:5000/",
|
||||
// Per MCP spec, URIs should not have trailing slashes unless semantically significant
|
||||
public string[] ValidResources { get; set; } = [
|
||||
"http://localhost:5000",
|
||||
"http://localhost:5000/mcp",
|
||||
"http://localhost:7071/"
|
||||
"http://localhost:7071"
|
||||
];
|
||||
|
||||
private readonly ConcurrentDictionary<string, AuthorizationCodeInfo> _authCodes = new();
|
||||
|
|
|
|||
Loading…
Reference in a new issue