access_time 4 years ago languageEnglish
Retrieve Identity username, email and other information in ASP.NET Core
visibility 34,978 comment 2
The identity system in ASP.NET has evolved over time. If you are using ASP.NET Core, you probably found User property is an instance of ClaimsPrincipal in Controller or Razor views. Thus to retrieve the information, you need to utilize the claims.
info Last modified by Raymond 4 years ago