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
|
|
@ -56,8 +56,8 @@ builder.Services.AddAuthentication(options =>
|
|||
{
|
||||
options.ResourceMetadata = new()
|
||||
{
|
||||
ResourceDocumentation = new Uri("https://docs.example.com/api/weather"),
|
||||
AuthorizationServers = { new Uri(inMemoryOAuthServerUrl) },
|
||||
ResourceDocumentation = "https://docs.example.com/api/weather",
|
||||
AuthorizationServers = { inMemoryOAuthServerUrl },
|
||||
ScopesSupported = ["mcp:tools"],
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue