6 references to PrimaryApiKey
Aspire.Dashboard (6)
Configuration\DashboardOptions.cs (2)
184_primaryApiKeyBytes = PrimaryApiKey != null ? Encoding.UTF8.GetBytes(PrimaryApiKey) : null;
Configuration\PostConfigureDashboardOptions.cs (3)
75options.Api.AuthMode ??= string.IsNullOrEmpty(options.Api.PrimaryApiKey) ? ApiAuthMode.Unsecured : ApiAuthMode.ApiKey; 92if (string.IsNullOrEmpty(options.Mcp.PrimaryApiKey) && !string.IsNullOrEmpty(options.Api.PrimaryApiKey)) 95options.Mcp.PrimaryApiKey = options.Api.PrimaryApiKey;
Configuration\ValidateDashboardOptions.cs (1)
128var hasApiKey = !string.IsNullOrEmpty(options.Api.PrimaryApiKey) || !string.IsNullOrEmpty(options.Mcp.PrimaryApiKey);