6 references to ApiKey
Aspire.Hosting (6)
Dashboard\DashboardLifecycleHook.cs (2)
217if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(ResourceServiceAuthMode.ApiKey), StringComparison.OrdinalIgnoreCase) 220context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.ApiKey);
Dashboard\DashboardServiceAuth.cs (1)
39if (options.AuthMode is ResourceServiceAuthMode.ApiKey)
Dashboard\ResourceServiceOptions.cs (2)
48if (options.AuthMode is ResourceServiceAuthMode.ApiKey) 52AddError($"AppHost:ResourceService:ApiKey is required when AppHost:ResourceService:AuthMode is '{nameof(ResourceServiceAuthMode.ApiKey)}'.");
DistributedApplicationBuilder.cs (1)
253["AppHost:ResourceService:AuthMode"] = nameof(ResourceServiceAuthMode.ApiKey),