2 writes to DistinguishedName
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
474DistinguishedName = distinguishedName
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdResourceBuilderTests.cs (1)
1094DistinguishedName = "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. 352public 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)}.") 387else if (DistinguishedName is not null) 389envVars[$"{prefix}{separator}CertificateDistinguishedName"] = DistinguishedName;
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdResourceBuilderTests.cs (2)
993Assert.Null(cred.DistinguishedName); 1014Assert.Equal("CN=MyCert", cred.DistinguishedName);