2023-01-31 04:18:10 -07:00
|
|
|
namespace Jellyfin.Api.Constants;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Constants for user roles used in the authentication and authorization for the API.
|
|
|
|
/// </summary>
|
|
|
|
public static class UserRoles
|
2019-11-23 12:31:17 -07:00
|
|
|
{
|
|
|
|
/// <summary>
|
2023-01-31 04:18:10 -07:00
|
|
|
/// Guest user.
|
2019-11-23 12:31:17 -07:00
|
|
|
/// </summary>
|
2023-01-31 04:18:10 -07:00
|
|
|
public const string Guest = "Guest";
|
2019-11-23 12:31:17 -07:00
|
|
|
|
2023-01-31 04:18:10 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Regular user with no special privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string User = "User";
|
2019-11-23 12:31:17 -07:00
|
|
|
|
2023-01-31 04:18:10 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Administrator user with elevated privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string Administrator = "Administrator";
|
2019-11-23 12:31:17 -07:00
|
|
|
}
|