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