Example #1
0
 public UserClaim(CodeZeroUserBase user, Claim claim)
 {
     TenantId   = user.TenantId;
     UserId     = user.Id;
     ClaimType  = claim.Type;
     ClaimValue = claim.Value;
 }
Example #2
0
        protected internal UserToken(CodeZeroUserBase user, [NotNull] string loginProvider, [NotNull] string name, string value)
        {
            Check.NotNull(loginProvider, nameof(loginProvider));
            Check.NotNull(name, nameof(name));

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