Skip to content

Commit 3d91c43

Browse files
authored
Need to check for 'null-or-empty' issuer signing keys (#2057)
1 parent ceb10b1 commit 3d91c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ private static JsonWebToken ValidateSignature(JsonWebToken jwtToken, TokenValida
15471547
}
15481548
}
15491549

1550-
if (keys == null && validationParameters.TryAllIssuerSigningKeys)
1550+
if (validationParameters.TryAllIssuerSigningKeys && keys.IsNullOrEmpty())
15511551
{
15521552
// control gets here if:
15531553
// 1. User specified delegate: IssuerSigningKeyResolver returned null

0 commit comments

Comments
 (0)