1 write to PrimaryApiKey
Aspire.Dashboard (1)
Configuration\PostConfigureDashboardOptions.cs (1)
115
options.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)
108
if (options.Api.AuthMode == ApiAuthMode.ApiKey && string.IsNullOrEmpty(options.Api.
PrimaryApiKey
))
Configuration\ValidateDashboardOptions.cs (1)
122
if (string.IsNullOrEmpty(options.Api.
PrimaryApiKey
))
DashboardEndpointsBuilder.cs (1)
130
? currentOptions.Api.
PrimaryApiKey
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (1)
563
Assert.False(string.IsNullOrEmpty(app.DashboardOptionsMonitor.CurrentValue.Api.
PrimaryApiKey
), "A primary API key should be auto-generated.");
Integration\TelemetryApiTests.cs (1)
45
Assert.False(string.IsNullOrEmpty(options.Api.
PrimaryApiKey
), "A primary API key should be auto-generated.");