2023-01-31 11:18:10 +00: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 19:31:17 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2023-01-31 11:18:10 +00:00
|
|
|
/// Guest user.
|
2019-11-23 19:31:17 +00:00
|
|
|
/// </summary>
|
2023-01-31 11:18:10 +00:00
|
|
|
public const string Guest = "Guest";
|
2019-11-23 19:31:17 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Regular user with no special privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string User = "User";
|
2019-11-23 19:31:17 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Administrator user with elevated privileges.
|
|
|
|
/// </summary>
|
|
|
|
public const string Administrator = "Administrator";
|
2019-11-23 19:31:17 +00:00
|
|
|
}
|