10 references to McpApiKeyAuthenticationHandler
Aspire.Dashboard (9)
Components\Dialogs\McpServerDialog.razor.cs (2)
66
_mcpConfigProperties.Add(new McpConfigPropertyViewModel { Name = $"{
McpApiKeyAuthenticationHandler
.ApiKeyHeaderName} (header)", Value = DashboardOptions.Value.Mcp.PrimaryApiKey! });
89
[
McpApiKeyAuthenticationHandler
.ApiKeyHeaderName] = DashboardOptions.Value.Mcp.PrimaryApiKey!
DashboardWebApplication.cs (5)
449
_app.MapMcp("/mcp").RequireAuthorization(
McpApiKeyAuthenticationHandler
.PolicyName);
701
.AddScheme<McpApiKeyAuthenticationHandlerOptions,
McpApiKeyAuthenticationHandler
>(
McpApiKeyAuthenticationHandler
.AuthenticationScheme, o => { })
845
name:
McpApiKeyAuthenticationHandler
.PolicyName,
847
.RequireClaim(
McpApiKeyAuthenticationHandler
.McpClaimName, [bool.TrueString])
Mcp\McpCompositeAuthenticationHandler.cs (2)
34
var id = new ClaimsIdentity([new Claim(
McpApiKeyAuthenticationHandler
.McpClaimName, bool.TrueString)]);
44
yield return
McpApiKeyAuthenticationHandler
.AuthenticationScheme;
Aspire.Dashboard.Tests (1)
Integration\McpServiceTests.cs (1)
106
requestMessage.Headers.TryAddWithoutValidation(
McpApiKeyAuthenticationHandler
.ApiKeyHeaderName, apiKey);