4 writes to AuthMode
Aspire.Dashboard (2)
Configuration\PostConfigureDashboardOptions.cs (2)
86options.Otlp.AuthMode = OtlpAuthMode.Unsecured; 94options.Otlp.AuthMode ??= OtlpAuthMode.Unsecured;
Aspire.Dashboard.Components.Tests (1)
Layout\MainLayoutTests.cs (1)
1088o.Otlp.AuthMode = OtlpAuthMode.Unsecured;
Aspire.Dashboard.Tests (1)
DashboardOptionsTests.cs (1)
33AuthMode = OtlpAuthMode.Unsecured,
12 references to AuthMode
Aspire.Dashboard (9)
Authentication\OtlpCompositeAuthenticationHandler.cs (2)
44if (options.Otlp.AuthMode is OtlpAuthMode.ApiKey) 48else if (options.Otlp.AuthMode is OtlpAuthMode.ClientCertificate)
Components\Layout\MainLayout.razor.cs (1)
225Options.CurrentValue.Otlp.AuthMode == OtlpAuthMode.Unsecured &&
Configuration\ValidateDashboardOptions.cs (3)
63errorMessages.Add($"Unexpected frontend authentication mode: {options.Otlp.AuthMode}"); 81switch (options.Otlp.AuthMode) 105errorMessages.Add($"Unexpected OTLP authentication mode: {options.Otlp.AuthMode}");
DashboardWebApplication.cs (3)
440_dashboardOptionsMonitor.CurrentValue.Otlp.AuthMode == OtlpAuthMode.Unsecured) 663EndpointInfo.TryAddEndpoint(endpoints, dashboardOptions.Otlp.GetGrpcEndpointAddress(), "OtlpGrpc", httpProtocols: HttpProtocols.Http2, requireCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate, connectionType: ConnectionType.OtlpGrpc); 664EndpointInfo.TryAddEndpoint(endpoints, dashboardOptions.Otlp.GetHttpEndpointAddress(), "OtlpHttp", httpProtocols: HttpProtocols.Http1AndHttp2, requireCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate, connectionType: ConnectionType.OtlpHttp);
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (3)
347Assert.Equal(OtlpAuthMode.ApiKey, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 561Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 582Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode);