9 references to ResourceServiceAuthMode
Aspire.Hosting (9)
Dashboard\DashboardLifecycleHook.cs (3)
212
if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(
ResourceServiceAuthMode
.ApiKey), StringComparison.OrdinalIgnoreCase)
215
context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(
ResourceServiceAuthMode
.ApiKey);
220
context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(
ResourceServiceAuthMode
.Unsecured);
Dashboard\DashboardServiceAuth.cs (1)
39
if (options.AuthMode is
ResourceServiceAuthMode
.ApiKey)
Dashboard\ResourceServiceOptions.cs (3)
24
public
ResourceServiceAuthMode
? AuthMode { get; set; }
48
if (options.AuthMode is
ResourceServiceAuthMode
.ApiKey)
52
AddError($"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)