aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-06-09 14:29:52 +0900
committerGitHub <noreply@github.com>2020-06-09 14:29:52 +0900
commitb3f8928fbb9cada0eb58b9f3cf29a87ba57cd205 (patch)
tree2a0304b9c579198f150227fba6e2d86203ceaff4 /MediaBrowser.Controller/Net/AuthenticatedAttribute.cs
parent26f937c36966f9f1636c552292c3affeb8a8082d (diff)
parent6be862545ae76eb454b91601f08745e7b46dcd28 (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.cs4
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; }
}
}