Skip to content

Commit a3d1338

Browse files
authored
Suppress unapplicable CodeQL AAD issues (#10701)
1 parent 4dea997 commit a3d1338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WebJobs.Script.WebHost/Security/Authentication/Jwt/ScriptJwtBearerExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ private static IEnumerable<string> GetValidAudiences()
135135
public static TokenValidationParameters CreateTokenValidationParameters()
136136
{
137137
var signingKeys = SecretsUtility.GetTokenIssuerSigningKeys();
138+
139+
// There are two separate CodeQL alerts for the same issue. The double comment on same line is intentional.
140+
// CodeQL [SM04555] this handler does not verify AAD tokens. It verifies tokens issued by the platform. // CodeQL [SM04554] this handler does not verify AAD tokens. It verifies tokens issued by the platform.
138141
var result = new TokenValidationParameters();
139142
if (signingKeys.Length > 0)
140143
{

0 commit comments

Comments
 (0)