Skip to content

Commit

Permalink
JsonWebTokenHandler to return the JsonWebToken on validation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybtsai committed Dec 20, 2022
1 parent 82fda2c commit bd4f5c7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,7 @@ private TokenValidationResult ValidateJWS(JsonWebToken jsonWebToken, TokenValida
{
return new TokenValidationResult
{
SecurityToken = jsonWebToken,
Exception = ex,
IsValid = false
};
Expand Down Expand Up @@ -1353,6 +1354,7 @@ private TokenValidationResult ValidateJWE(JsonWebToken jwtToken, TokenValidation
{
return new TokenValidationResult
{
SecurityToken = jwtToken,
Exception = ex,
IsValid = false
};
Expand Down

0 comments on commit bd4f5c7

Please sign in to comment.