mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-19 02:24:19 +01:00
25 lines
656 B
C#
25 lines
656 B
C#
namespace DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
public class AuthorityAttribute
|
|
{
|
|
public AuthorityAttribute(string attributeKey, string bound) : this()
|
|
{
|
|
AttributeKey = attributeKey;
|
|
BoundId = bound;
|
|
}
|
|
|
|
public AuthorityAttribute()
|
|
{
|
|
|
|
}
|
|
|
|
public string AttributeKey { get; set; } // ClaimType/Authority.attribute.enabled
|
|
|
|
public string BoundId { get; set; } // Bound to User, Group, Role id
|
|
|
|
public string? AttributeValue { get; set; }
|
|
|
|
public string? Type { get; set; } // AspNet.Claim.Role/Property/Data.JSON, Data.Raw, Data.Base64 etc.
|
|
|
|
public long Version { get; set; }
|
|
} |