IHttpContextAccessor.HttpContext.User.Identity shows all null properties in CurrentUserService service
问题 I am trying to use Jason Taylor's Clean Architecture Template, this template uses NSwag to automatically create a TypeScript Client (Angular), but I don't need to create a TS client, so my main goal is to replace it with Razor Pages. I've been able to achieve this to a high grade, but I'm having trouble with the CurrentUserService whenever it gets instantiated it is supposed to set the UserId in this line: UserId = httpContextAccessor.HttpContext?.User?.FindFirstValue(ClaimTypes