9 references to ResourceServiceAuthMode
Aspire.Hosting (9)
Dashboard\DashboardLifecycleHook.cs (3)
212if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(ResourceServiceAuthMode.ApiKey), StringComparison.OrdinalIgnoreCase) 215context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.ApiKey); 220context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.Unsecured);
Dashboard\DashboardServiceAuth.cs (1)
39if (options.AuthMode is ResourceServiceAuthMode.ApiKey)
Dashboard\ResourceServiceOptions.cs (3)
24public ResourceServiceAuthMode? AuthMode { get; set; } 48if (options.AuthMode is ResourceServiceAuthMode.ApiKey) 52AddError($"AppHost:ResourceService:ApiKey is required when AppHost:ResourceService:AuthMode is '{nameof(ResourceServiceAuthMode.ApiKey)}'.");
DistributedApplicationBuilder.cs (2)
250["AppHost:ResourceService:AuthMode"] = nameof(ResourceServiceAuthMode.ApiKey), 261["AppHost:ResourceService:AuthMode"] = nameof(ResourceServiceAuthMode.Unsecured)