mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-25 06:58:40 +02:00
Merge pull request #4096 from crobibero/auth-ex
Fix catching authentication exception
This commit is contained in:
commit
b76d4ba454
|
@ -125,6 +125,7 @@ namespace Jellyfin.Server.Middleware
|
||||||
switch (ex)
|
switch (ex)
|
||||||
{
|
{
|
||||||
case ArgumentException _: return StatusCodes.Status400BadRequest;
|
case ArgumentException _: return StatusCodes.Status400BadRequest;
|
||||||
|
case AuthenticationException _:
|
||||||
case SecurityException _: return StatusCodes.Status401Unauthorized;
|
case SecurityException _: return StatusCodes.Status401Unauthorized;
|
||||||
case DirectoryNotFoundException _:
|
case DirectoryNotFoundException _:
|
||||||
case FileNotFoundException _:
|
case FileNotFoundException _:
|
||||||
|
|
Loading…
Reference in a new issue