Skip to content

Commit 82cd3fd

Browse files
bdapoignyjennyf19kllysngpmaytak
authored
remove duplicate keyid into var keysAttempted (#2899)
Co-authored-by: jennyf19 <[email protected]> Co-authored-by: kellyyangsong <[email protected]> Co-authored-by: Peter <[email protected]>
1 parent fd9be46 commit 82cd3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.IdentityModel.Tokens.Jwt/JwtSecurityTokenHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ private JwtSecurityToken ValidateSignature(string token, JwtSecurityToken jwtTok
13601360

13611361
if (key != null)
13621362
{
1363-
(keysAttempted ??= new StringBuilder()).Append(key.ToString()).Append(" , KeyId: ").AppendLine(key.KeyId);
1363+
(keysAttempted ??= new StringBuilder()).Append(key.ToString());
13641364
if (kidExists && !kidMatched && key.KeyId != null)
13651365
kidMatched = jwtToken.Header.Kid.Equals(key.KeyId, key is X509SecurityKey ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
13661366
}

0 commit comments

Comments
 (0)