2019-11-24 18:25:46 +00:00
|
|
|
namespace Jellyfin.Api.Constants
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Policies for the API authorization.
|
|
|
|
/// </summary>
|
|
|
|
public static class Policies
|
|
|
|
{
|
2020-06-15 18:49:54 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for default authorization.
|
|
|
|
/// </summary>
|
|
|
|
public const string DefaultAuthorization = "DefaultAuthorization";
|
|
|
|
|
2019-11-24 18:25:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring first time setup or elevated privileges.
|
|
|
|
/// </summary>
|
2020-08-06 14:17:45 +00:00
|
|
|
public const string FirstTimeSetupOrElevated = "FirstTimeSetupOrElevated";
|
2019-11-24 18:25:46 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring elevated privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string RequiresElevation = "RequiresElevation";
|
2020-06-15 18:49:54 +00: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 14:17:45 +00:00
|
|
|
public const string IgnoreParentalControl = "IgnoreParentalControl";
|
2020-06-19 19:10:10 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for requiring download permission.
|
|
|
|
/// </summary>
|
|
|
|
public const string Download = "Download";
|
2020-08-06 14:17:45 +00: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";
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for escaping schedule controls or requiring first time setup.
|
|
|
|
/// </summary>
|
|
|
|
public const string IgnoreParentalControlOrFirstTimeSetup = "IgnoreParentalControlOrFirstTimeSetup";
|
2019-11-24 18:25:46 +00:00
|
|
|
}
|
|
|
|
}
|