9 references to ApiKey
Aspire.Hosting (6)
Dashboard\DashboardEventHandlers.cs (2)
659
if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(ResourceServiceAuthMode.
ApiKey
), StringComparison.OrdinalIgnoreCase)
662
context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.
ApiKey
);
Dashboard\DashboardServiceAuth.cs (1)
39
if (options.AuthMode is ResourceServiceAuthMode.
ApiKey
)
Dashboard\ResourceServiceOptions.cs (2)
48
if (options.AuthMode is ResourceServiceAuthMode.
ApiKey
)
52
AddError($"AppHost:ResourceService:ApiKey is required when AppHost:ResourceService:AuthMode is '{nameof(ResourceServiceAuthMode.
ApiKey
)}'.");
DistributedApplicationBuilder.cs (1)
505
["AppHost:ResourceService:AuthMode"] = nameof(ResourceServiceAuthMode.
ApiKey
),
Aspire.Hosting.Testing.Tests (2)
DashboardTestingBuilderTests.cs (2)
73
Assert.Equal(nameof(ResourceServiceAuthMode.
ApiKey
), builder.Configuration[AppHostResourceServiceAuthMode]);
226
Assert.Equal(nameof(ResourceServiceAuthMode.
ApiKey
), builder.Configuration[AppHostResourceServiceAuthMode]);
Aspire.Hosting.Tests (1)
DistributedApplicationBuilderTests.cs (1)
159
Assert.Equal(nameof(ResourceServiceAuthMode.
ApiKey
), config["AppHost:ResourceService:AuthMode"]);