Skip to content

Commit 8bde6d2

Browse files
authored
Update CommonCryptographyManager.cs to suppress codeql rule
1 parent b7580f6 commit 8bde6d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/CommonCryptographyManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public virtual byte[] SignWithCertificate(string message, X509Certificate2 certi
9090

9191
byte[] SignDataAndCacheProvider(string message)
9292
{
93-
// codeql[cs/cryptography/rsa-unapproved-signing-padding-scheme] Backwards Compatibility: Requires using PKCS1 padding for Identity Providers not supporting PSS (older ADFS, non-Microsoft identity providers)
93+
// codeql [SM03799] Backwards Compatibility: Requires using PKCS1 padding for Identity Providers not supporting PSS (older ADFS, dSTS)
9494
var signedData = rsa.SignData(Encoding.UTF8.GetBytes(message), HashAlgorithmName.SHA256, signaturePadding);
9595

9696
// Cache only valid RSA crypto providers, which are able to sign data successfully

0 commit comments

Comments
 (0)