Ejemplo n.º 1
0
 public UserClaim(MajidUserBase user, Claim claim)
 {
     TenantId   = user.TenantId;
     UserId     = user.Id;
     ClaimType  = claim.Type;
     ClaimValue = claim.Value;
 }
Ejemplo n.º 2
0
        protected internal UserToken(MajidUserBase user, [NotNull] string loginProvider, [NotNull] string name, string value, DateTime?expireDate = null)
        {
            Check.NotNull(loginProvider, nameof(loginProvider));
            Check.NotNull(name, nameof(name));

            TenantId      = user.TenantId;
            UserId        = user.Id;
            LoginProvider = loginProvider;
            Name          = name;
            Value         = value;
            ExpireDate    = expireDate;
        }