diff options
| author | crobibero <cody@robibe.ro> | 2020-06-12 14:35:51 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-12 14:35:51 -0600 |
| commit | 2fe65d99f6886d607d618903ac03f7474ce68df0 (patch) | |
| tree | 681efab6ef8fdbffc8b8ddb3e09bc811c733a10d /Emby.Server.Implementations/HttpServer/Security/AuthService.cs | |
| parent | dfe873fc293cf940a4f3d25aacdc8dfc53f150dc (diff) | |
| parent | 6429e60c408c0b88edee6745c5c9c14faade3c9d (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.cs | 6 |
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; } |
