2 writes to ApiKey
Aspire.Dashboard.Tests (2)
DashboardOptionsTests.cs (1)
113
options.ResourceServiceClient.
ApiKey
= "";
Integration\DashboardClientAuthTests.cs (1)
61
await using var client = await CreateDashboardClientAsync(loggerFactory, server.Url, authMode: ResourceClientAuthMode.ApiKey, configureOptions: options => options.ResourceServiceClient.
ApiKey
= "TestApiKey!").DefaultTimeout();
5 references to ApiKey
Aspire.Dashboard (5)
Configuration\DashboardOptions.cs (3)
34
internal byte[] GetApiKeyBytes() => _apiKeyBytes ?? throw new InvalidOperationException($"{nameof(
ApiKey
)} is not available.");
47
_apiKeyBytes =
ApiKey
!= null ? Encoding.UTF8.GetBytes(
ApiKey
) : null;
Configuration\ValidateDashboardOptions.cs (1)
110
if (string.IsNullOrWhiteSpace(options.ResourceServiceClient.
ApiKey
))
ResourceService\DashboardClient.cs (1)
110
_headers.Add(ApiKeyHeaderName, _dashboardOptions.ResourceServiceClient.
ApiKey
!);