Fall back to well-known URL in client if 401 response is missing resource_metadata parameter (#1054)
This commit is contained in:
parent
d99f882884
commit
970207989e
1 changed files with 497 additions and 134 deletions
|
|
@ -56,7 +56,6 @@ builder.Services.AddAuthentication(options =>
|
|||
{
|
||||
options.ResourceMetadata = new()
|
||||
{
|
||||
Resource = new Uri(serverUrl),
|
||||
ResourceDocumentation = new Uri("https://docs.example.com/api/weather"),
|
||||
AuthorizationServers = { new Uri(inMemoryOAuthServerUrl) },
|
||||
ScopesSupported = ["mcp:tools"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue