Skip to content

Commit

Permalink
Removes the expected signature from the SignatureVerificationExceptio…
Browse files Browse the repository at this point in the history
…n for security reasons
  • Loading branch information
rpetz committed Nov 29, 2016
1 parent fb517dc commit f6ac211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JWT/JWT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public static void Verify(string payloadJson, string decodedCrypto, string decod
{
if (decodedCrypto != decodedSignature)
{
throw new SignatureVerificationException(string.Format("Invalid signature. Expected {0} got {1}", decodedCrypto, decodedSignature));
throw new SignatureVerificationException("Invalid signature");
}

// verify exp claim https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.4
Expand Down

0 comments on commit f6ac211

Please sign in to comment.