Files
xIdentityModels/Models/XScopeDefinition.cs
T
2026-11-15 17:53:12 +03:30

51 lines
1.3 KiB
C#

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