3 writes to DistinguishedName
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
1114
DistinguishedName
= distinguishedName
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdProvisioningTests.cs (1)
1321
DistinguishedName
= distinguishedName
EntraIdResourceBuilderTests.cs (1)
1169
DistinguishedName
= "CN=MyCert"
9 references to DistinguishedName
Aspire.Hosting.Azure.EntraId (7)
EntraIdApplicationResource.cs (7)
1256
/// Set exactly one of <see cref="Thumbprint"/> or <see cref="
DistinguishedName
"/>. Setting both,
1264
/// Thrown when neither or both of <see cref="Thumbprint"/> and <see cref="
DistinguishedName
"/> are set.
1266
public override string SourceType => (Thumbprint,
DistinguishedName
) switch
1271
$"Only one of {nameof(Thumbprint)} or {nameof(
DistinguishedName
)} can be set on {nameof(EntraIdStoreCertificateCredential)}."),
1273
$"Either {nameof(Thumbprint)} or {nameof(
DistinguishedName
)} must be set on {nameof(EntraIdStoreCertificateCredential)}.")
1301
else if (
DistinguishedName
is not null)
1303
envVars[$"{prefix}{separator}CertificateDistinguishedName"] =
DistinguishedName
;
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdResourceBuilderTests.cs (2)
1071
Assert.Null(cred.
DistinguishedName
);
1091
Assert.Equal("CN=MyCert", cred.
DistinguishedName
);