1 write to PrimaryApiKey
Aspire.Dashboard (1)
Configuration\PostConfigureDashboardOptions.cs (1)
95
options.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)
697
DashboardOptions.Value.Mcp.
PrimaryApiKey
760
FluentUIExtensions.GetClipboardCopyAdditionalAttributes(DashboardOptions.Value.Mcp.
PrimaryApiKey
, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)], ControlsStringsLoc[nameof(ControlsStrings.GridValueCopied)])
1259
DashboardOptions.Value.Mcp.
PrimaryApiKey
1322
FluentUIExtensions.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)
74
options.Mcp.AuthMode ??= string.IsNullOrEmpty(options.Mcp.
PrimaryApiKey
) ? McpAuthMode.Unsecured : McpAuthMode.ApiKey;
92
if (string.IsNullOrEmpty(options.Mcp.
PrimaryApiKey
) && !string.IsNullOrEmpty(options.Api.PrimaryApiKey))
Configuration\ValidateDashboardOptions.cs (1)
128
var hasApiKey = !string.IsNullOrEmpty(options.Api.PrimaryApiKey) || !string.IsNullOrEmpty(options.Mcp.
PrimaryApiKey
);