diff --git a/src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs b/src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs index 8a26e3ec43..ad6a5a4057 100644 --- a/src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs +++ b/src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs @@ -141,10 +141,7 @@ private AuthorityInfo( /// /// True if SHA2 and PSS can be used for creating the client credential from a certificate /// - internal bool IsSha2CredentialSupported => - AuthorityType != AuthorityType.Dsts && - AuthorityType != AuthorityType.Generic && - AuthorityType != AuthorityType.Adfs; + internal bool IsSha2CredentialSupported => false; #region Builders internal static AuthorityInfo FromAuthorityUri(string authorityUri, bool validateAuthority) diff --git a/tests/Microsoft.Identity.Test.Unit/ApiConfigTests/AuthorityTests.cs b/tests/Microsoft.Identity.Test.Unit/ApiConfigTests/AuthorityTests.cs index 4a881bcadc..deb1356782 100644 --- a/tests/Microsoft.Identity.Test.Unit/ApiConfigTests/AuthorityTests.cs +++ b/tests/Microsoft.Identity.Test.Unit/ApiConfigTests/AuthorityTests.cs @@ -104,15 +104,15 @@ public void WithTenantIdAtRequestLevel_NonAad(string inputAuthority) } [DataTestMethod] - [DataRow(TestConstants.AuthorityCommonTenant, true)] - [DataRow(TestConstants.AuthorityCommonPpeAuthority, true)] + [DataRow(TestConstants.AuthorityCommonTenant, false)] + [DataRow(TestConstants.AuthorityCommonPpeAuthority, false)] [DataRow(TestConstants.DstsAuthorityCommon, false)] [DataRow(TestConstants.DstsAuthorityTenanted, false)] - [DataRow(TestConstants.CiamAuthorityMainFormat, true)] - [DataRow(TestConstants.CiamAuthorityWithFriendlyName, true)] - [DataRow(TestConstants.CiamAuthorityWithGuid, true)] - [DataRow(TestConstants.B2CAuthority, true)] - [DataRow(TestConstants.B2CCustomDomain, true)] + [DataRow(TestConstants.CiamAuthorityMainFormat, false)] + [DataRow(TestConstants.CiamAuthorityWithFriendlyName, false)] + [DataRow(TestConstants.CiamAuthorityWithGuid, false)] + [DataRow(TestConstants.B2CAuthority, false)] + [DataRow(TestConstants.B2CCustomDomain, false)] [DataRow(TestConstants.ADFSAuthority, false)] public void IsSha2Supported(string inputAuthority, bool expected) {