Skip to content

Commit 0badaf8

Browse files
committed
Update McpAuthenticationHandler.cs
1 parent 1fd164c commit 0badaf8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ModelContextProtocol.AspNetCore/Auth/McpAuthenticationHandler.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using Microsoft.AspNetCore.Authentication;
22
using Microsoft.Extensions.Logging;
33
using Microsoft.Extensions.Options;
4-
using System;
54
using System.Text.Encodings.Web;
6-
using System.Threading.Tasks;
75

86
namespace ModelContextProtocol.AspNetCore.Auth;
97

@@ -12,19 +10,15 @@ namespace ModelContextProtocol.AspNetCore.Auth;
1210
/// </summary>
1311
public class McpAuthenticationHandler : AuthenticationHandler<McpAuthenticationOptions>
1412
{
15-
private readonly ResourceMetadataService _resourceMetadataService;
16-
1713
/// <summary>
1814
/// Initializes a new instance of the <see cref="McpAuthenticationHandler"/> class.
1915
/// </summary>
2016
public McpAuthenticationHandler(
2117
IOptionsMonitor<McpAuthenticationOptions> options,
2218
ILoggerFactory logger,
23-
UrlEncoder encoder,
24-
ResourceMetadataService resourceMetadataService)
19+
UrlEncoder encoder)
2520
: base(options, logger, encoder)
2621
{
27-
_resourceMetadataService = resourceMetadataService;
2822
}
2923

3024
/// <inheritdoc />

0 commit comments

Comments
 (0)