2019-11-24 13:25:46 -05:00
|
|
|
namespace Jellyfin.Api.Constants
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Policies for the API authorization.
|
|
|
|
/// </summary>
|
|
|
|
public static class Policies
|
|
|
|
{
|
2020-06-15 14:49:54 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for default authorization.
|
|
|
|
/// </summary>
|
|
|
|
public const string DefaultAuthorization = "DefaultAuthorization";
|
|
|
|
|
2019-11-24 13:25:46 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring first time setup or elevated privileges.
|
|
|
|
/// </summary>
|
2020-08-06 10:17:45 -04:00
|
|
|
public const string FirstTimeSetupOrElevated = "FirstTimeSetupOrElevated";
|
2019-11-24 13:25:46 -05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring elevated privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string RequiresElevation = "RequiresElevation";
|
2020-06-15 14:49:54 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for allowing local access only.
|
|
|
|
/// </summary>
|
|
|
|
public const string LocalAccessOnly = "LocalAccessOnly";
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for escaping schedule controls.
|
|
|
|
/// </summary>
|
2020-08-06 10:17:45 -04:00
|
|
|
public const string IgnoreParentalControl = "IgnoreParentalControl";
|
2020-06-19 15:10:10 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring download permission.
|
|
|
|
/// </summary>
|
|
|
|
public const string Download = "Download";
|
2020-08-06 10:17:45 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring first time setup or default permissions.
|
|
|
|
/// </summary>
|
|
|
|
public const string FirstTimeSetupOrDefault = "FirstTimeSetupOrDefault";
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring local access or elevated privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string LocalAccessOrRequiresElevation = "LocalAccessOrRequiresElevation";
|
|
|
|
|
2021-04-10 07:03:52 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring local LAN access.
|
|
|
|
/// </summary>
|
2021-04-10 13:49:18 -04:00
|
|
|
public const string LocalNetworkAccessPolicy = "LocalNetworkAccessPolicy";
|
2021-04-10 07:03:52 -04:00
|
|
|
|
2020-08-06 10:17:45 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for escaping schedule controls or requiring first time setup.
|
|
|
|
/// </summary>
|
2020-08-06 19:59:48 -04:00
|
|
|
public const string FirstTimeSetupOrIgnoreParentalControl = "FirstTimeSetupOrIgnoreParentalControl";
|
2020-12-03 04:43:44 -05:00
|
|
|
|
|
|
|
/// <summary>
|
2020-12-07 04:33:15 -05:00
|
|
|
/// Policy name for accessing SyncPlay.
|
2020-12-03 04:43:44 -05:00
|
|
|
/// </summary>
|
2020-12-07 04:33:15 -05:00
|
|
|
public const string SyncPlayHasAccess = "SyncPlayHasAccess";
|
2020-12-03 04:43:44 -05:00
|
|
|
|
|
|
|
/// <summary>
|
2020-12-07 04:33:15 -05:00
|
|
|
/// Policy name for creating a SyncPlay group.
|
2020-12-03 04:43:44 -05:00
|
|
|
/// </summary>
|
2020-12-07 04:33:15 -05:00
|
|
|
public const string SyncPlayCreateGroup = "SyncPlayCreateGroup";
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for joining a SyncPlay group.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayJoinGroup = "SyncPlayJoinGroup";
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for accessing a SyncPlay group.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
|
2019-11-24 13:25:46 -05:00
|
|
|
}
|
|
|
|
}
|