aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Authenticate
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-01 21:22:55 +0800
committer杨宇千 <crupest@outlook.com>2019-08-01 21:22:55 +0800
commitfded706989548a6f80aa7605ce70b7d20e49edb7 (patch)
tree234ec46171bb5d86d8ff569e69cdd41807df7ef7 /Timeline/Authenticate
parentc07297373df08bd605f5bec96020192bb6dec151 (diff)
downloadtimeline-fded706989548a6f80aa7605ce70b7d20e49edb7.tar.gz
timeline-fded706989548a6f80aa7605ce70b7d20e49edb7.tar.bz2
timeline-fded706989548a6f80aa7605ce70b7d20e49edb7.zip
Expired token now has a unique code.
Diffstat (limited to 'Timeline/Authenticate')
-rw-r--r--Timeline/Authenticate/AuthHandler.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Timeline/Authenticate/AuthHandler.cs b/Timeline/Authenticate/AuthHandler.cs
index 75d3b49f..41cb11c6 100644
--- a/Timeline/Authenticate/AuthHandler.cs
+++ b/Timeline/Authenticate/AuthHandler.cs
@@ -87,6 +87,10 @@ namespace Timeline.Authenticate
return AuthenticateResult.Success(new AuthenticationTicket(principal, AuthConstants.Scheme));
}
+ catch (ArgumentException)
+ {
+ throw; // this exception usually means server error.
+ }
catch (Exception e)
{
_logger.LogInformation(e, "A jwt token validation failed.");