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