2019-11-24 12:25:43 -05:00
|
|
|
namespace Jellyfin.Api.Constants
|
2019-11-23 14:31:17 -05:00
|
|
|
{
|
|
|
|
/// <summary>
|
2019-11-24 12:25:43 -05:00
|
|
|
/// Constants for user roles used in the authentication and authorization for the API.
|
2019-11-23 14:31:17 -05:00
|
|
|
/// </summary>
|
2019-11-24 12:25:43 -05:00
|
|
|
public static class UserRole
|
2019-11-23 14:31:17 -05:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Guest user.
|
|
|
|
/// </summary>
|
2019-11-24 12:25:43 -05:00
|
|
|
public const string Guest = "Guest";
|
2019-11-23 14:31:17 -05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Regular user with no special privileges.
|
|
|
|
/// </summary>
|
2019-11-24 12:25:43 -05:00
|
|
|
public const string User = "User";
|
2019-11-23 14:31:17 -05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Administrator user with elevated privileges.
|
|
|
|
/// </summary>
|
2019-11-24 12:25:43 -05:00
|
|
|
public const string Administrator = "Administrator";
|
2019-11-23 14:31:17 -05:00
|
|
|
}
|
|
|
|
}
|