Exemple #1
0
 public JTUserClaim(JTUserBase user, Claim claim)
 {
     TenantId   = user.TenantId;
     UserId     = user.Id;
     ClaimType  = claim.Type;
     ClaimValue = claim.Value;
 }
Exemple #2
0
        protected internal JTUserToken(JTUserBase 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;
        }