diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-05-18 19:31:51 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 19:31:51 +0900 |
| commit | 7b75cc7fea27cfc42cedf359375fcf39ca7a2363 (patch) | |
| tree | 26aecb58fca46161233bc9d90542aca3dd37ae60 | |
| parent | 4b4b50f3eedc5be92786cc9d4e0d244999107426 (diff) | |
| parent | 3bc07e7c56880de8b75cbd36c79deff6decf8e77 (diff) | |
Merge pull request #3133 from kesslern/fix-setup-wizard
Fix 500 error causing first-time setup wizard to hang
| -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)); |
