diff options
| author | David <daullmer@gmail.com> | 2020-06-14 12:49:19 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-14 12:49:19 +0200 |
| commit | ac0a3180d7c8613001147700d8e6cef40f6a0d8c (patch) | |
| tree | a8196f929c7897bc9dee745d8f75601620b978b5 /Jellyfin.Api/Auth/CustomAuthenticationHandler.cs | |
| parent | 618b893c481a658820370cdf4f62c5a9a2deebd1 (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-librarystructure
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 a0c9c3f5a..100054096 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; @@ -66,6 +67,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)); |
