1 write to PrimaryApiKey
Aspire.Dashboard (1)
Configuration\PostConfigureDashboardOptions.cs (1)
115options.Api.PrimaryApiKey = apiKey;
7 references to PrimaryApiKey
Aspire.Dashboard (5)
Configuration\DashboardOptions.cs (2)
216_primaryApiKeyBytes = PrimaryApiKey != null ? Encoding.UTF8.GetBytes(PrimaryApiKey) : null;
Configuration\PostConfigureDashboardOptions.cs (1)
108if (options.Api.AuthMode == ApiAuthMode.ApiKey && string.IsNullOrEmpty(options.Api.PrimaryApiKey))
Configuration\ValidateDashboardOptions.cs (1)
122if (string.IsNullOrEmpty(options.Api.PrimaryApiKey))
DashboardEndpointsBuilder.cs (1)
130? currentOptions.Api.PrimaryApiKey
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (1)
563Assert.False(string.IsNullOrEmpty(app.DashboardOptionsMonitor.CurrentValue.Api.PrimaryApiKey), "A primary API key should be auto-generated.");
Integration\TelemetryApiTests.cs (1)
45Assert.False(string.IsNullOrEmpty(options.Api.PrimaryApiKey), "A primary API key should be auto-generated.");