4 writes to AuthMode
Aspire.Dashboard (2)
Configuration\PostConfigureDashboardOptions.cs (2)
50options.Otlp.AuthMode = OtlpAuthMode.Unsecured; 55options.Otlp.AuthMode ??= OtlpAuthMode.Unsecured;
Aspire.Dashboard.Components.Tests (1)
Layout\MainLayoutTests.cs (1)
141Services.Configure<DashboardOptions>(o => o.Otlp.AuthMode = OtlpAuthMode.Unsecured);
Aspire.Dashboard.Tests (1)
DashboardOptionsTests.cs (1)
24AuthMode = OtlpAuthMode.Unsecured,
10 references to AuthMode
Aspire.Dashboard (7)
Configuration\ValidateDashboardOptions.cs (3)
54errorMessages.Add($"Unexpected frontend authentication mode: {options.Otlp.AuthMode}"); 68switch (options.Otlp.AuthMode) 92errorMessages.Add($"Unexpected OTLP authentication mode: {options.Otlp.AuthMode}");
DashboardWebApplication.cs (4)
323if (_dashboardOptionsMonitor.CurrentValue.Otlp.AuthMode == OtlpAuthMode.Unsecured) 486AddEndpointConfiguration(initialValues, "OtlpGrpc", otlpGrpcAddress.ToString(), HttpProtocols.Http2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate); 490AddEndpointConfiguration(initialValues, "OtlpHttp", otlpHttpAddress.ToString(), HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate); 512AddEndpointConfiguration(initialValues, "OtlpGrpc", url!, HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate);
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (3)
258Assert.Equal(OtlpAuthMode.ApiKey, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 439Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 458Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode);