aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-12 14:35:51 -0600
committercrobibero <cody@robibe.ro>2020-06-12 14:35:51 -0600
commit2fe65d99f6886d607d618903ac03f7474ce68df0 (patch)
tree681efab6ef8fdbffc8b8ddb3e09bc811c733a10d /Emby.Server.Implementations/HttpServer/Security/AuthService.cs
parentdfe873fc293cf940a4f3d25aacdc8dfc53f150dc (diff)
parent6429e60c408c0b88edee6745c5c9c14faade3c9d (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-swagger-auth
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthService.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthService.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
index 58421aaf1..18bea59ad 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
@@ -146,11 +146,17 @@ namespace Emby.Server.Implementations.HttpServer.Security
{
return true;
}
+
if (authAttribtues.AllowLocalOnly && request.IsLocal)
{
return true;
}
+ if (authAttribtues.IgnoreLegacyAuth)
+ {
+ return true;
+ }
+
return false;
}