HttpContext.User is null inside controller in Asp.net core MVC 3.1
问题 In my application I sign-in with Claim and Use cookie authentication without ASP.NET Core Identity For that in login action use bellow code ,as describe here var claims = new List<Claim>(); foreach (var customclaim in customclaims) { claims.Add(new Claim(customclaim.Type, customclaim.Value)); } var claimsIdentity = new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme); var authProperties = new AuthenticationProperties { //AllowRefresh = true, //ExpiresUtc =