using System.Collections.Immutable;
namespace API.Constants
{
///
/// Role-based Security
///
public static class PolicyConstants
{
///
/// Admin User. Has all privileges
///
public const string AdminRole = "Admin";
///
/// Non-Admin User. Must be granted privileges by an Admin.
///
public const string PlebRole = "Pleb";
///
/// Used to give a user ability to download files from the server
///
public const string DownloadRole = "Download";
///
/// Used to give a user ability to change their own password
///
public const string ChangePasswordRole = "Change Password";
public static readonly ImmutableArray ValidRoles =
ImmutableArray.Create(AdminRole, PlebRole, DownloadRole, ChangePasswordRole);
}
}