aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kessler <nathant93@gmail.com>2020-05-17 10:48:30 -0400
committerNathan Kessler <nathant93@gmail.com>2020-05-17 10:48:30 -0400
commit3bc07e7c56880de8b75cbd36c79deff6decf8e77 (patch)
tree8eee428415c363447d3168394596a27b9f248f2e
parente75b2cd33568b3cae2a344190226b1d83a12230f (diff)
Fix 500 error causing first-time setup wizard to hang
-rw-r--r--Jellyfin.Api/Auth/CustomAuthenticationHandler.cs5
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));