2022-09-10 00:33:17 +03:00
|
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
|
|
|
|
namespace BlueWest.WebApi.Context.Users;
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public class ApplicationUserClaim : IdentityUserClaim<string>
|
|
|
|
{
|
2022-09-11 01:22:04 +03:00
|
|
|
/// <inheritdoc />
|
|
|
|
public sealed override int Id { get; set; }
|
|
|
|
|
2022-09-11 20:45:26 +03:00
|
|
|
#region User
|
2022-09-11 01:22:04 +03:00
|
|
|
/// <inheritdoc />
|
|
|
|
public sealed override string UserId { get; set; }
|
2022-09-11 20:45:26 +03:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Application User entity
|
|
|
|
/// </summary>
|
|
|
|
public ApplicationUser ApplicationUser { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
2022-09-11 01:22:04 +03:00
|
|
|
/// <inheritdoc />
|
|
|
|
public sealed override string ClaimType { get; set; }
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public sealed override string ClaimValue { get; set; }
|
|
|
|
|
|
|
|
public ApplicationUserClaim(ApplicationUserClaim applicationUserClaim)
|
|
|
|
{
|
|
|
|
Id = applicationUserClaim.Id;
|
|
|
|
UserId = applicationUserClaim.UserId;
|
2022-09-11 20:45:26 +03:00
|
|
|
ApplicationUser = applicationUserClaim.ApplicationUser;
|
2022-09-11 01:22:04 +03:00
|
|
|
ClaimType = applicationUserClaim.ClaimType;
|
|
|
|
ClaimValue = applicationUserClaim.ClaimValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ApplicationUserClaim()
|
|
|
|
{
|
|
|
|
}
|
2022-09-10 00:33:17 +03:00
|
|
|
}
|