1 write to PrimaryApiKey
Aspire.Dashboard (1)
Configuration\PostConfigureDashboardOptions.cs (1)
95options.Mcp.PrimaryApiKey = options.Api.PrimaryApiKey;
10 references to PrimaryApiKey
Aspire.Dashboard (10)
Components\Dialogs\McpServerDialog.razor.cs (1)
86_mcpConfigProperties.Add(new McpConfigPropertyViewModel { Name = $"{McpApiKeyAuthenticationHandler.McpApiKeyHeaderName} (header)", Value = DashboardOptions.Value.Mcp.PrimaryApiKey! });
Components_Dialogs_McpServerDialog_razor.g.cs (4)
697DashboardOptions.Value.Mcp.PrimaryApiKey 760FluentUIExtensions.GetClipboardCopyAdditionalAttributes(DashboardOptions.Value.Mcp.PrimaryApiKey, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)], ControlsStringsLoc[nameof(ControlsStrings.GridValueCopied)]) 1259DashboardOptions.Value.Mcp.PrimaryApiKey 1322FluentUIExtensions.GetClipboardCopyAdditionalAttributes(DashboardOptions.Value.Mcp.PrimaryApiKey, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)], ControlsStringsLoc[nameof(ControlsStrings.GridValueCopied)])
Configuration\DashboardOptions.cs (2)
256_primaryApiKeyBytes = PrimaryApiKey != null ? Encoding.UTF8.GetBytes(PrimaryApiKey) : null;
Configuration\PostConfigureDashboardOptions.cs (2)
74options.Mcp.AuthMode ??= string.IsNullOrEmpty(options.Mcp.PrimaryApiKey) ? McpAuthMode.Unsecured : McpAuthMode.ApiKey; 92if (string.IsNullOrEmpty(options.Mcp.PrimaryApiKey) && !string.IsNullOrEmpty(options.Api.PrimaryApiKey))
Configuration\ValidateDashboardOptions.cs (1)
128var hasApiKey = !string.IsNullOrEmpty(options.Api.PrimaryApiKey) || !string.IsNullOrEmpty(options.Mcp.PrimaryApiKey);