예제 #1
0
 public account(bool isLogin)
 {
     this.isLogin  = isLogin;
     this.username = null;
     this.avater   = null;
     this.userid   = -1;
     this.claim    = claims.guest;
 }
예제 #2
0
파일: Principal.cs 프로젝트: conesoft/users
 public static ClaimsPrincipal From(params Claim[] claims) => new(new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme));
예제 #3
0
 TokenHandler.CreateToken(
     GetTokenDescriptor(subject, claims, issuer, audience, expiry, notBefore, issuedAt)
     ));
예제 #4
0
 context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.Scheme.Name));