File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
samples/ProtectedMCPServer Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 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" ] ) ;
You can’t perform that action at this time.
0 commit comments