last ...
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user