diff options
| author | gion <oancaionutandrei@gmail.com> | 2020-05-26 10:23:09 +0200 |
|---|---|---|
| committer | gion <oancaionutandrei@gmail.com> | 2020-05-26 10:23:09 +0200 |
| commit | e4838b0faa2dafec9382abe8e00bd18be624a030 (patch) | |
| tree | e6c685ff5a8031e44007de7f113453ac6d296d07 /Jellyfin.Api/Auth/CustomAuthenticationHandler.cs | |
| parent | 8c04049a595df054f491712ed317274566f2d71b (diff) | |
| parent | 976ae36bea0768f0e363bf0c5091b0853cc81c4d (diff) | |
Merge remote-tracking branch 'upstream/master' into syncplay
Diffstat (limited to 'Jellyfin.Api/Auth/CustomAuthenticationHandler.cs')
| -rw-r--r-- | Jellyfin.Api/Auth/CustomAuthenticationHandler.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Auth/CustomAuthenticationHandler.cs b/Jellyfin.Api/Auth/CustomAuthenticationHandler.cs index 26f7d9d2d..aab1141ee 100644 --- a/Jellyfin.Api/Auth/CustomAuthenticationHandler.cs +++ b/Jellyfin.Api/Auth/CustomAuthenticationHandler.cs @@ -1,3 +1,4 @@ +using System.Security.Authentication; using System.Security.Claims; using System.Text.Encodings.Web; using System.Threading.Tasks; @@ -59,6 +60,10 @@ namespace Jellyfin.Api.Auth return Task.FromResult(AuthenticateResult.Success(ticket)); } + catch (AuthenticationException ex) + { + return Task.FromResult(AuthenticateResult.Fail(ex)); + } catch (SecurityException ex) { return Task.FromResult(AuthenticateResult.Fail(ex)); |
