jellyfin/Jellyfin.Api/Constants/Policies.cs

78 lines
2.4 KiB
C#
Raw Normal View History

2023-01-31 12:18:10 +01:00
namespace Jellyfin.Api.Constants;
/// <summary>
/// Policies for the API authorization.
/// </summary>
public static class Policies
2019-11-24 19:25:46 +01:00
{
/// <summary>
2023-01-31 12:18:10 +01:00
/// Policy name for default authorization.
2019-11-24 19:25:46 +01:00
/// </summary>
2023-01-31 12:18:10 +01:00
public const string DefaultAuthorization = "DefaultAuthorization";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring first time setup or elevated privileges.
/// </summary>
public const string FirstTimeSetupOrElevated = "FirstTimeSetupOrElevated";
2019-11-24 19:25:46 +01:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring elevated privileges.
/// </summary>
public const string RequiresElevation = "RequiresElevation";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for allowing local access only.
/// </summary>
public const string LocalAccessOnly = "LocalAccessOnly";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for escaping schedule controls.
/// </summary>
public const string IgnoreParentalControl = "IgnoreParentalControl";
2020-06-19 21:10:10 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring download permission.
/// </summary>
public const string Download = "Download";
2020-08-06 16:17:45 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring first time setup or default permissions.
/// </summary>
public const string FirstTimeSetupOrDefault = "FirstTimeSetupOrDefault";
2020-08-06 16:17:45 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring local access or elevated privileges.
/// </summary>
public const string LocalAccessOrRequiresElevation = "LocalAccessOrRequiresElevation";
2020-08-06 16:17:45 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for requiring (anonymous) LAN access.
/// </summary>
public const string AnonymousLanAccessPolicy = "AnonymousLanAccessPolicy";
2021-04-10 13:03:52 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for escaping schedule controls or requiring first time setup.
/// </summary>
public const string FirstTimeSetupOrIgnoreParentalControl = "FirstTimeSetupOrIgnoreParentalControl";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for accessing SyncPlay.
/// </summary>
public const string SyncPlayHasAccess = "SyncPlayHasAccess";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for creating a SyncPlay group.
/// </summary>
public const string SyncPlayCreateGroup = "SyncPlayCreateGroup";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for joining a SyncPlay group.
/// </summary>
public const string SyncPlayJoinGroup = "SyncPlayJoinGroup";
2023-01-31 12:18:10 +01:00
/// <summary>
/// Policy name for accessing a SyncPlay group.
/// </summary>
public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
2019-11-24 19:25:46 +01:00
}