Skip to content

Commit a433f5a

Browse files
committed
Contextual rename
1 parent 22b7bcc commit a433f5a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ModelContextProtocol.AspNetCore/Auth/McpAuthorizationExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.AspNetCore.Authentication;
22
using Microsoft.Extensions.DependencyInjection.Extensions;
3+
using ModelContextProtocol.AspNetCore.Auth;
34

45
namespace Microsoft.Extensions.DependencyInjection;
56

src/ModelContextProtocol.AspNetCore/HttpMcpServerBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static IMcpServerBuilder WithAuthorization(
6969

7070
// Add authentication with the MCP authentication handler
7171
builder.Services.AddAuthentication()
72-
.AddMcpAuthorization(options =>
72+
.AddMcp(options =>
7373
{
7474
// Default to the standard OAuth protected resource endpoint
7575
options.ResourceMetadataUri = new Uri("/.well-known/oauth-protected-resource", UriKind.Relative);

0 commit comments

Comments
 (0)