6 references to ApiKey
Aspire.Hosting (6)
Dashboard\DashboardLifecycleHook.cs (2)
217
if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(ResourceServiceAuthMode.
ApiKey
), StringComparison.OrdinalIgnoreCase)
220
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)
253
["AppHost:ResourceService:AuthMode"] = nameof(ResourceServiceAuthMode.
ApiKey
),