6 references to ApiKey
Aspire.Dashboard (3)
Configuration\ValidateDashboardOptions.cs (2)
109case ResourceClientAuthMode.ApiKey: 112errorMessages.Add($"{DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey} is \"{nameof(ResourceClientAuthMode.ApiKey)}\", but no {DashboardConfigNames.ResourceServiceClientApiKeyName.ConfigKey} is configured.");
ResourceService\DashboardClient.cs (1)
107if (_dashboardOptions.ResourceServiceClient.AuthMode is ResourceClientAuthMode.ApiKey)
Aspire.Dashboard.Tests (3)
DashboardOptionsTests.cs (2)
112options.ResourceServiceClient.AuthMode = ResourceClientAuthMode.ApiKey; 118Assert.Equal($"{DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey} is \"{nameof(ResourceClientAuthMode.ApiKey)}\", but no {DashboardConfigNames.ResourceServiceClientApiKeyName.ConfigKey} is configured.", result.FailureMessage);
Integration\DashboardClientAuthTests.cs (1)
61await using var client = await CreateDashboardClientAsync(loggerFactory, server.Url, authMode: ResourceClientAuthMode.ApiKey, configureOptions: options => options.ResourceServiceClient.ApiKey = "TestApiKey!").DefaultTimeout();