36 references to OtlpAuthMode
Aspire.Dashboard (14)
Authentication\OtlpCompositeAuthenticationHandler.cs (2)
44
if (options.Otlp.AuthMode is
OtlpAuthMode
.ApiKey)
48
else if (options.Otlp.AuthMode is
OtlpAuthMode
.ClientCertificate)
Components\Layout\MainLayout.razor.cs (1)
105
if (Options.CurrentValue.Otlp.AuthMode ==
OtlpAuthMode
.Unsecured)
Configuration\DashboardOptions.cs (1)
79
public
OtlpAuthMode
? AuthMode { get; set; }
Configuration\PostConfigureDashboardOptions.cs (2)
50
options.Otlp.AuthMode =
OtlpAuthMode
.Unsecured;
55
options.Otlp.AuthMode ??=
OtlpAuthMode
.Unsecured;
Configuration\ValidateDashboardOptions.cs (4)
70
case
OtlpAuthMode
.Unsecured:
72
case
OtlpAuthMode
.ApiKey:
78
case
OtlpAuthMode
.ClientCertificate:
89
errorMessages.Add($"OTLP endpoint authentication is not configured. Either specify {DashboardConfigNames.DashboardUnsecuredAllowAnonymousName.ConfigKey}=true, or specify {DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey}. Possible values: {string.Join(", ", typeof(
OtlpAuthMode
).GetEnumNames())}");
DashboardWebApplication.cs (4)
331
if (_dashboardOptionsMonitor.CurrentValue.Otlp.AuthMode ==
OtlpAuthMode
.Unsecured)
513
AddEndpointConfiguration(initialValues, "OtlpGrpc", otlpGrpcAddress.ToString(), HttpProtocols.Http2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode ==
OtlpAuthMode
.ClientCertificate);
517
AddEndpointConfiguration(initialValues, "OtlpHttp", otlpHttpAddress.ToString(), HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode ==
OtlpAuthMode
.ClientCertificate);
539
AddEndpointConfiguration(initialValues, "OtlpGrpc", url!, HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode ==
OtlpAuthMode
.ClientCertificate);
Aspire.Dashboard.Components.Tests (1)
Layout\MainLayoutTests.cs (1)
141
Services.Configure<DashboardOptions>(o => o.Otlp.AuthMode =
OtlpAuthMode
.Unsecured);
Aspire.Dashboard.Tests (21)
DashboardOptionsTests.cs (1)
24
AuthMode =
OtlpAuthMode
.Unsecured,
Integration\IntegrationTestHelpers.cs (1)
64
[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = nameof(
OtlpAuthMode
.Unsecured),
Integration\OtlpGrpcServiceTests.cs (10)
55
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
77
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
104
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
132
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
169
["AuthMode"] =
OtlpAuthMode
.ApiKey.ToString(),
211
["AuthMode"] =
OtlpAuthMode
.ApiKey.ToString(),
274
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ClientCertificate.ToString();
300
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ClientCertificate.ToString();
339
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ClientCertificate.ToString();
378
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ClientCertificate.ToString();
Integration\OtlpHttpServiceTests.cs (3)
106
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
130
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
158
config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] =
OtlpAuthMode
.ApiKey.ToString();
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
32
[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = nameof(
OtlpAuthMode
.Unsecured),
Integration\StartupTests.cs (5)
119
data["Dashboard:Otlp:AuthMode"] = nameof(
OtlpAuthMode
.ClientCertificate);
250
initialData["Dashboard:Otlp:AuthMode"] = nameof(
OtlpAuthMode
.ApiKey);
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);