Skip to content

Commit d77368d

Browse files
committed
Placeholder for events
1 parent e3c5c21 commit d77368d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace ModelContextProtocol.AspNetCore.Auth
2+
{
3+
/// <summary>
4+
/// Represents the authentication events for Model Context Protocol.
5+
/// </summary>
6+
public class McpAuthenticationEvents
7+
{
8+
}
9+
}

src/ModelContextProtocol.AspNetCore/Auth/McpAuthenticationOptions.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ public class McpAuthenticationOptions : AuthenticationSchemeOptions
1010
{
1111
private static readonly Uri DefaultResourceMetadataUri = new("/.well-known/oauth-protected-resource", UriKind.Relative);
1212

13+
/// <summary>
14+
/// Gets or sets the events used to handle authentication events.
15+
/// </summary>
16+
public new McpAuthenticationEvents Events
17+
{
18+
get { return (McpAuthenticationEvents)base.Events!; }
19+
set { base.Events = value; }
20+
}
21+
1322
/// <summary>
1423
/// The URI to the resource metadata document.
1524
/// </summary>

0 commit comments

Comments
 (0)