Class McpAuthenticationOptions
- Namespace
- ModelContextProtocol.AspNetCore.Authentication
- Assembly
- ModelContextProtocol.AspNetCore.dll
Options for the MCP authentication handler.
public class McpAuthenticationOptions : AuthenticationSchemeOptions
- Inheritance
-
McpAuthenticationOptions
- Inherited Members
Constructors
McpAuthenticationOptions()
Initializes a new instance of the McpAuthenticationOptions class.
public McpAuthenticationOptions()
Properties
Events
Gets or sets the events used to handle authentication events.
public McpAuthenticationEvents Events { get; set; }
Property Value
ResourceMetadata
Gets or sets the protected resource metadata.
public ProtectedResourceMetadata? ResourceMetadata { get; set; }
Property Value
Remarks
This contains the OAuth metadata for the protected resource, including authorization servers, supported scopes, and other information needed for clients to authenticate.
ResourceMetadataUri
The URI to the resource metadata document.
public Uri ResourceMetadataUri { get; set; }
Property Value
Remarks
This URI will be included in the WWW-Authenticate header when a 401 response is returned.