diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-06-13 16:28:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-13 16:28:37 -0400 |
| commit | 0011e8df47380936742302ef40639a4626a780ed (patch) | |
| tree | b286c590e9d1dbc00cf1acbf8e50f90713e8faf8 /Jellyfin.Api/Auth/CustomAuthenticationHandler.cs | |
| parent | d975ad155e7857bcbfcf55246fd78dd87ed594ca (diff) | |
| parent | ec3e15db5789b6218482beb488433f41f9a0d8ba (diff) | |
Merge pull request #3332 from crobibero/api-migration
Merge master into api-migration
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)); |
