Skip to content

Commit 03438d2

Browse files
committed
Defaults are applied here - no need to redeclare
1 parent ff8a2b7 commit 03438d2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

samples/ProtectedMCPServer/Program.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
})
1616
.AddScheme<AuthenticationSchemeOptions, SimpleAuthHandler>("Bearer", options => { })
1717
.AddMcp(options => {
18-
// Ensure ResourceMetadataUri matches the actual mapping in McpEndpointRouteBuilderExtensions.cs
19-
options.ResourceMetadataUri = new Uri("/.well-known/oauth-protected-resource", UriKind.Relative);
20-
21-
// Configure the resource metadata using our enhanced options
22-
options.ResourceMetadata.Resource = new Uri("http://localhost:7071");
2318
options.ResourceMetadata.AuthorizationServers.Add(new Uri("https://login.microsoftonline.com/a2213e1c-e51e-4304-9a0d-effe57f31655/v2.0"));
2419
options.ResourceMetadata.BearerMethodsSupported.Add("header");
2520
options.ResourceMetadata.ScopesSupported.AddRange(["weather.read", "weather.write"]);

0 commit comments

Comments
 (0)