Skip to content

Commit

Permalink
Need to check for 'null-or-empty' issuer signing keys (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybtsai authored Apr 19, 2023
1 parent ceb10b1 commit 3d91c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ private static JsonWebToken ValidateSignature(JsonWebToken jwtToken, TokenValida
}
}

if (keys == null && validationParameters.TryAllIssuerSigningKeys)
if (validationParameters.TryAllIssuerSigningKeys && keys.IsNullOrEmpty())
{
// control gets here if:
// 1. User specified delegate: IssuerSigningKeyResolver returned null
Expand Down

0 comments on commit 3d91c43

Please sign in to comment.