2 writes to DistinguishedName
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
474
DistinguishedName
= distinguishedName
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdResourceBuilderTests.cs (1)
1094
DistinguishedName
= "CN=MyCert"
9 references to DistinguishedName
Aspire.Hosting.Azure.EntraId (7)
EntraIdApplicationResource.cs (7)
342
/// Set exactly one of <see cref="Thumbprint"/> or <see cref="
DistinguishedName
"/>. Setting both,
350
/// Thrown when neither or both of <see cref="Thumbprint"/> and <see cref="
DistinguishedName
"/> are set.
352
public override string SourceType => (Thumbprint,
DistinguishedName
) switch
357
$"Only one of {nameof(Thumbprint)} or {nameof(
DistinguishedName
)} can be set on {nameof(EntraIdStoreCertificateCredential)}."),
359
$"Either {nameof(Thumbprint)} or {nameof(
DistinguishedName
)} must be set on {nameof(EntraIdStoreCertificateCredential)}.")
387
else if (
DistinguishedName
is not null)
389
envVars[$"{prefix}{separator}CertificateDistinguishedName"] =
DistinguishedName
;
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdResourceBuilderTests.cs (2)
993
Assert.Null(cred.
DistinguishedName
);
1014
Assert.Equal("CN=MyCert", cred.
DistinguishedName
);