Skip to content

Commit da9fb9b

Browse files
committed
Update McpAuthenticationOptions.cs
1 parent be83c92 commit da9fb9b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/ModelContextProtocol.AspNetCore/Authentication/McpAuthenticationOptions.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ public class McpAuthenticationOptions : AuthenticationSchemeOptions
1313

1414
private Func<HttpContext, ProtectedResourceMetadata>? _resourceMetadataProvider;
1515

16-
private ProtectedResourceMetadata? _resourceMetadata; /// <summary>
16+
private ProtectedResourceMetadata? _resourceMetadata;
17+
18+
/// <summary>
1719
/// Initializes a new instance of the <see cref="McpAuthenticationOptions"/> class.
1820
/// </summary>
19-
/// <remarks>
20-
/// After creating an instance, you must set the ResourceMetadata property or use the
21-
/// UseStaticResourceMetadata method to provide a valid resource URI before using this options instance.
22-
/// </remarks>
2321
public McpAuthenticationOptions()
2422
{
2523
base.ForwardAuthenticate = "Bearer";
@@ -58,7 +56,7 @@ public McpAuthenticationOptions()
5856
public ProtectedResourceMetadata ResourceMetadata
5957
{
6058
get => _resourceMetadata ?? throw new InvalidOperationException(
61-
"ResourceMetadata has not been configured. Use ResourceMetadata property setter or UseStaticResourceMetadata method to provide a valid resource URI.");
59+
"ResourceMetadata has not been configured.");
6260
set
6361
{
6462
ArgumentNullException.ThrowIfNull(value);

0 commit comments

Comments
 (0)