diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-06-09 14:29:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-09 14:29:52 +0900 |
| commit | b3f8928fbb9cada0eb58b9f3cf29a87ba57cd205 (patch) | |
| tree | 2a0304b9c579198f150227fba6e2d86203ceaff4 /MediaBrowser.Controller/Net/AuthenticatedAttribute.cs | |
| parent | 26f937c36966f9f1636c552292c3affeb8a8082d (diff) | |
| parent | 6be862545ae76eb454b91601f08745e7b46dcd28 (diff) | |
Merge pull request #3218 from crobibero/api-cors
Enable CORS and Authentation
Diffstat (limited to 'MediaBrowser.Controller/Net/AuthenticatedAttribute.cs')
| -rw-r--r-- | MediaBrowser.Controller/Net/AuthenticatedAttribute.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs b/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs index 29fb81e32..9f2743ea1 100644 --- a/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs +++ b/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs @@ -52,6 +52,8 @@ namespace MediaBrowser.Controller.Net return (Roles ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); } + public bool IgnoreLegacyAuth { get; set; } + public bool AllowLocalOnly { get; set; } } @@ -63,5 +65,7 @@ namespace MediaBrowser.Controller.Net bool AllowLocalOnly { get; } string[] GetRoles(); + + bool IgnoreLegacyAuth { get; } } } |
