using xModels.Base;
using System.ComponentModel.DataAnnotations;
namespace xIdentityModels.Models
{
///
/// a Scope Definition Model (mirror of IdentityServer ApiScope) ...
///
public class XScopeDefinition : XBaseIntIDEntity
{
///
/// Unique Scope Name, e.g. XAPI.read ...
///
[Required]
[StringLength(200)]
public string Name { get; set; }
///
/// Display Name ...
///
[StringLength(255)]
public string DisplayName { get; set; }
///
/// Description ...
///
[StringLength(1000)]
public string Description { get; set; }
///
/// Comma Separated List of User Claims ...
///
public string UserClaims { get; set; }
///
/// Optional ApiResource Name on IdentityServer ...
///
[StringLength(200)]
public string ApiResourceName { get; set; }
///
/// Is Enabled ...
///
public bool IsEnabled { get; set; } = true;
///
/// Seeded from Constants, cannot be removed ...
///
public bool IsSystem { get; set; }
}
}