diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-01 21:22:55 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-01 21:22:55 +0800 |
commit | 2ef31740d62a415e7df59f22c450ae954ee97193 (patch) | |
tree | 234ec46171bb5d86d8ff569e69cdd41807df7ef7 /Timeline/Authenticate/AuthHandler.cs | |
parent | 85d25348c9d6ad527b86c57fd5023829c8b9d6bf (diff) | |
download | timeline-2ef31740d62a415e7df59f22c450ae954ee97193.tar.gz timeline-2ef31740d62a415e7df59f22c450ae954ee97193.tar.bz2 timeline-2ef31740d62a415e7df59f22c450ae954ee97193.zip |
Expired token now has a unique code.
Diffstat (limited to 'Timeline/Authenticate/AuthHandler.cs')
-rw-r--r-- | Timeline/Authenticate/AuthHandler.cs | 4 |
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."); |